一:供layout使用的全局变量 注意,这里也可以作为多语言版本的方案。在values目录下创建文件,如: 相应的,比如Dimens, 比如,strings, 然后,使用的地方有:
分类:
移动开发 时间:
2015-06-16 18:21:58
阅读次数:
131
实现URI字符串转化成escape格式的字符publicstaticstringEscape(strings){StringBuilder sb =newStringBuilder();byte[] ba = System.Text.Encoding.Unicode.GetBytes(s);for(...
Add Binary: https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example,
a = “11”
b = “1”
Return “100”.本题关键点在于:
1. 从后往前计算,但是结果字符串应该是从最前插入每...
分类:
其他好文 时间:
2015-06-15 16:25:15
阅读次数:
113
1 题目:Write a function to find the longest common prefix string amongst an array of strings.Hide TagsString2 思路所有字符串公共的前缀,那么第一个字符串肯定包括了。 从第一个字符串开始遍历着手即...
分类:
其他好文 时间:
2015-06-14 16:26:59
阅读次数:
102
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:
其他好文 时间:
2015-06-14 12:37:10
阅读次数:
126
The Longest Common Substring (LCS) problem is as follows:Given two strings s and t, find the length of the longest string r, which is a substring of b...
分类:
其他好文 时间:
2015-06-13 23:04:33
阅读次数:
120
appium的帮助文档? ~ appium -husage: appium [-h] [-v] [--shell] [--localizable-strings-dir LOCALIZABLESTRINGSDIR] [--app APP] [-...
分类:
移动开发 时间:
2015-06-12 20:47:32
阅读次数:
530
While Mike was walking in the subway, all the stuff in his back-bag dropped on the ground. There were several fax messages among them. He concatenated these strings in some order and now he has string...
分类:
其他好文 时间:
2015-06-12 17:14:18
阅读次数:
118
problems: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".class Solution {public: string...
分类:
其他好文 时间:
2015-06-12 16:40:21
阅读次数:
71
代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 void swap(char &a, char &b) 8 { 9 char c = a;10 a = b;11 b = c;12 }13 ...
分类:
其他好文 时间:
2015-06-12 00:38:33
阅读次数:
170