Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter...
分类:
其他好文 时间:
2015-12-28 06:12:03
阅读次数:
179
Remove Duplicate LettersGiven a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once....
分类:
编程语言 时间:
2015-12-26 23:33:11
阅读次数:
248
Given a string, we can "shift" each of its letter to its successive letter, for example:"abc" -> "bcd". We can keep "shifting" which forms the sequenc...
分类:
其他好文 时间:
2015-12-25 07:40:19
阅读次数:
277
1 var arr = [ 2 [], 3 [], 4 ['a', 'b', 'c'], 5 ['d', 'e', 'f'], 6 ['g', 'h', 'i'], 7 ['j', 'k', 'l'], 8 ['m', 'n', 'o'], ...
分类:
其他好文 时间:
2015-12-24 20:42:47
阅读次数:
204
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your...
分类:
其他好文 时间:
2015-12-24 11:56:41
阅读次数:
117
Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen...
分类:
其他好文 时间:
2015-12-22 06:26:37
阅读次数:
175
LeetCode解题之Letter Combinations of a Phone Number原题手机按键上每个数字都对应了多个字母,如2对应了”abc”,现给出一个数字串,要求把其中的每个数字都转化为对应的字母中的一个,列出所有的组合情况。...
分类:
其他好文 时间:
2015-12-20 13:19:46
阅读次数:
163
Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter...
分类:
其他好文 时间:
2015-12-16 12:13:33
阅读次数:
194
题目:Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the tele...
分类:
其他好文 时间:
2015-12-15 15:54:54
阅读次数:
149
思路借鉴了https://leetcode.com/discuss/73806/15-ms-java-solutionfor "cbacdcbc", we counts each letter's index:a----2b----1,6c----0,3,5,7d----4we go from a ...
分类:
其他好文 时间:
2015-12-14 06:49:01
阅读次数:
143