Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ...
分类:
其他好文 时间:
2015-08-04 00:31:12
阅读次数:
108
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 = "rat", t = "car", return false.
Note:
You may a...
分类:
其他好文 时间:
2015-08-03 22:54:11
阅读次数:
142
Add Binary
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
两字符串表示的2进制数。求它们的和。
直接模拟,从最后一位开始每一位都相加,结果保存在栈中。
class Solut...
分类:
其他好文 时间:
2015-08-03 19:07:54
阅读次数:
115
在res目录下的drawable-mdpi建立xml文件shape.xml,如下图所示:shape.xml main.xml在android:background="@drawable/shape"就使用了shape.xml资源strings.xml Hello World, ...
分类:
其他好文 时间:
2015-08-03 12:55:47
阅读次数:
114
判断字符相等DescriptionToday on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are calle...
分类:
其他好文 时间:
2015-08-02 22:56:30
阅读次数:
128
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 = "rat", t = "car", return false.
Note:
You may a...
分类:
其他好文 时间:
2015-08-02 21:34:46
阅读次数:
104
Description Andrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones. Once he t.....
分类:
其他好文 时间:
2015-08-02 21:31:44
阅读次数:
112
DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thoug...
分类:
其他好文 时间:
2015-08-02 21:19:49
阅读次数:
111
原题:DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he th...
分类:
其他好文 时间:
2015-08-02 20:00:41
阅读次数:
135
Today on a lecture about strings Gerald learned a new definition of string equivalency. Two stringsaandbof equal length are calledequivalentin one of ...
分类:
其他好文 时间:
2015-08-02 19:57:29
阅读次数:
623