题目: Write a function to find the longest common prefix string amongst an array of strings. 链接:http://leetcode.com/problems/longest-common-prefix/ 一刷: ...
分类:
其他好文 时间:
2016-06-03 12:34:23
阅读次数:
154
很多时候我们感性Google在设计Android时遵守了大量MVC架构方式,可以让写公共代码、美工和具体逻辑开发人员独立出来。有关Android 的资源文件values/strings.xml中如何实现格式化字符串呢?
stringdemo
hello robert
上面是一段简单的字符串资源文件,没有用到格式化,因为比较简单直接描述了意思,当我们设计一个类似 Delete ...
分类:
移动开发 时间:
2016-06-02 15:00:43
阅读次数:
287
Group Anagrams
Total Accepted: 76941 Total
Submissions: 275801 Difficulty: Medium
Given an array of strings, group anagrams together.
For example, given: ["eat", "tea", "tan", "ate"...
分类:
其他好文 时间:
2016-06-02 14:54:36
阅读次数:
204
Problem: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = " ...
分类:
其他好文 时间:
2016-05-29 21:23:26
阅读次数:
109
tangym@ubuntu:~$cdredis-2.8.12tangym@ubuntu:~/redis-2.8.12$cdsrctangym@ubuntu:~/redis-2.8.12/src$redis-cliSetredis127.0.0.1:6379>getname"lijie"redis127.0.0.1:6379>setnamemichaelOKGetredis127.0.0.1:6379>getname"michael"redis127.0.0.1:6379>setnxna..
分类:
其他好文 时间:
2016-05-25 18:57:55
阅读次数:
180
1.新建一个string文件,命名为Localizable.strings 2.添加需要的语言 3.选中刚才新建的stringfile,点开属性,点击下图所示按钮 4.上一步操作之后string文件变成了两个,分别在里面设置对应的中英文(或者需要设置的语言内容)即可。 5.在需要使用国际化的字符串的 ...
分类:
移动开发 时间:
2016-05-25 15:06:34
阅读次数:
257
1. 把string变为char数组 2. 排序Arrays.sort() ...
分类:
其他好文 时间:
2016-05-25 01:44:27
阅读次数:
116
根据查阅的资料,以及工作总结。做如下备注: 1、应用名称 : strings文件 命名为 InfoPlist.strings (名称:"CFBundleDisplayName"); 2、文件内容 : strings文件 命名为 Localization.strings; 3、strings 对比文件 ...
分类:
移动开发 时间:
2016-05-24 15:15:05
阅读次数:
207
1.设计、制作欢迎界面 2.对杰龙注册界面进行重设计和规范strings → → → ...
分类:
其他好文 时间:
2016-05-24 00:10:51
阅读次数:
145
sds.h文件/* SDSLib, A C dynamic strings library
*
* Copyright (c) 2006-2010, Salvatore Sanfilippo
* All rights reserved.
*
* Redistribution and use in source and binary fo...
分类:
其他好文 时间:
2016-05-22 12:32:11
阅读次数:
164