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 ...
分类:
其他好文 时间:
2016-12-05 07:46:31
阅读次数:
192
Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. Show Company T ...
分类:
其他好文 时间:
2016-12-04 11:27:57
阅读次数:
186
一.python中的string模块 string模块中的ascii_letterss是生成所有的大小写字母a-z,A-Z。dights是生成所有的数字0-9 代码: import string src_st = string.ascii_letters +string.digits#所有大小写字母 ...
分类:
编程语言 时间:
2016-11-29 21:49:22
阅读次数:
182
Virtual Friends Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8229 Accepted Submission(s): 2363 ...
分类:
其他好文 时间:
2016-11-29 21:27:34
阅读次数:
198
[POJ3096]Surprising Strings 试题描述 The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is ...
分类:
其他好文 时间:
2016-11-27 06:52:40
阅读次数:
194
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-11-26 11:22:19
阅读次数:
177
Safecracker Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13237 Accepted Submission(s): 6897 Pr ...
分类:
其他好文 时间:
2016-11-26 02:35:25
阅读次数:
172
题目: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and ...
分类:
编程语言 时间:
2016-11-24 21:42:54
阅读次数:
287
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-11-20 13:06:11
阅读次数:
162