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...
分类:
其他好文 时间:
2015-05-03 20:30:08
阅读次数:
112
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...
分类:
编程语言 时间:
2015-05-02 11:04:18
阅读次数:
161
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2015-04-30 19:47:36
阅读次数:
107
Comparetwoversionnumbersversion1andversion2.Ifversion1>version2return1,ifversion1<version2return-1,otherwisereturn0.Youmayassumethattheversionstringsarenon-emptyandcontainonlydigitsandthe.character.The.characterdoesnotrepresentadecimalpointandisusedto..
分类:
其他好文 时间:
2015-04-29 07:24:35
阅读次数:
137
Comparetwoversionnumbersversion1andversion2.Ifversion1>version2return1,ifversion1<version2return-1,otherwisereturn0.Youmayassumethattheversionstringsarenon-emptyandcontainonlydigitsandthe.character.The.characterdoesnotrepresentadecimalpointandisusedto..
分类:
其他好文 时间:
2015-04-29 07:23:52
阅读次数:
111
problem:
Given a binary tree containing digits from 0-9 only,
each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which
represents the number...
分类:
其他好文 时间:
2015-04-28 11:48:32
阅读次数:
160
组合模式的英文原文是:Compose objects into tree structures to represent part-whole hiearachies. Composite lets clients treat individual objects and compositions of objects uniformly. 意思是:将对象组合成树形结构以表示“部分—整体”的层次结...
分类:
其他好文 时间:
2015-04-27 10:00:53
阅读次数:
106
1. How can we represent natural language meaning so that a computer can process these representations?2. How can we associate meaning representations ...
分类:
其他好文 时间:
2015-04-25 15:02:24
阅读次数:
121
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...
分类:
其他好文 时间:
2015-04-24 01:04:53
阅读次数:
138
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/ gr ...
分类:
其他好文 时间:
2015-04-23 17:40:47
阅读次数:
205