Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-09-03 01:52:10
阅读次数:
287
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...
分类:
其他好文 时间:
2015-09-02 00:01:04
阅读次数:
163
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...
分类:
其他好文 时间:
2015-09-01 16:35:19
阅读次数:
209
题目: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....
分类:
其他好文 时间:
2015-08-29 06:21:42
阅读次数:
190
Problem:Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequential...
分类:
其他好文 时间:
2015-08-29 00:37:07
阅读次数:
255
Word Search 和 Word Search Ⅱ
Word Search
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, whe...
分类:
其他好文 时间:
2015-08-28 23:28:09
阅读次数:
482
Decode WaysA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded ...
分类:
其他好文 时间:
2015-08-27 20:54:10
阅读次数:
166
Problem:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded messa...
分类:
其他好文 时间:
2015-08-27 10:51:59
阅读次数:
164
#catgenpass.py
fromrandomimportchoice
importstring
defGenPasswd(length=20,chars=string.letters+string.digits):
return‘‘.join([choice(chars)foriinrange(length)])
foriinrange(6):
printGenPasswd(20)运行结果为:#pythongenpass.py
mv2yMlDEyQFcujkh7ttM
4fNmbh2at..
分类:
编程语言 时间:
2015-08-26 20:19:47
阅读次数:
231
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 nu...
分类:
其他好文 时间:
2015-08-25 21:52:38
阅读次数:
137