LeetCode:Ransom Note 【问题再现】 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that ...
分类:
其他好文 时间:
2016-09-24 23:11:23
阅读次数:
152
LeetCode:Find the Difference 【问题再现】 Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling strin ...
分类:
其他好文 时间:
2016-09-24 21:47:09
阅读次数:
97
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:
其他好文 时间:
2016-09-24 11:55:51
阅读次数:
116
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 sequentially adja ...
分类:
其他好文 时间:
2016-09-22 06:30:43
阅读次数:
182
Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. ...
分类:
其他好文 时间:
2016-09-22 01:14:20
阅读次数:
145
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-09-21 06:47:28
阅读次数:
111
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans ...
分类:
其他好文 时间:
2016-09-21 01:47:19
阅读次数:
186
Given two strings s and t which consist of only lowercase letters. 给出两个字符串,s和t,都是只有小写字母组成的。 String t is generated by random shuffling string s and the ...
分类:
其他好文 时间:
2016-09-21 01:36:26
阅读次数:
131
题目: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ...
分类:
其他好文 时间:
2016-09-19 06:45:52
阅读次数:
157
1 #coding=utf-8 2 3 my_input = '' #输入字符串,即输入的原始命题 4 all_letters = [] #命题中所有的字母 5 my_parse = '' 6 hequ_result=[] 7 xiqu_result=[] 8 9 def getInput(): 1 ...
分类:
其他好文 时间:
2016-09-18 08:52:13
阅读次数:
257