Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-11-19 12:05:22
阅读次数:
204
Updating a DictionaryIn this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, and values are non-negative in...
分类:
其他好文 时间:
2014-11-19 07:04:07
阅读次数:
223
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring
without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-11-19 01:35:20
阅读次数:
199
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-11-17 22:29:25
阅读次数:
242
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total numb...
分类:
其他好文 时间:
2014-11-17 19:29:21
阅读次数:
213
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA"is a palindrome because...
分类:
其他好文 时间:
2014-11-17 15:45:48
阅读次数:
161
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-11-16 09:19:40
阅读次数:
218
恩、、蒟蒻只会写沙茶题了。。。唔~这道题首先想到了逆序对,但是每个字母有多个们怎么办呢。。。欸,对哦,必须是最近两个相同字母的进行配对,然后就可以搞出一个数列来了。。。然后就没有然后了!(去年逆序对写错的蒟蒻不想再说逆序对的问题了。。。) 1 /***************************...
分类:
其他好文 时间:
2014-11-15 10:02:14
阅读次数:
226
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con...
分类:
其他好文 时间:
2014-11-15 08:54:40
阅读次数:
148
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-11-13 23:52:11
阅读次数:
363