08 2015 档案

[LeetCode] Integer to English Words
摘要:Integer to English WordsConvert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231- 1.For examp... 阅读全文

posted @ 2015-08-31 12:18 Eason Liu 阅读(903) 评论(0) 推荐(0)

[CTCI] 最长合成字符串
摘要:最长合成字符串题目描述有一组单词,请编写一个程序,在数组中找出由数组中字符串组成的最长的串A,即A是由其它单词组成的(可重复)最长的单词。给定一个string数组str,同时给定数组的大小n。请返回最长单词的长度,保证题意所述的最长单词存在。测试样例:["a","b","c","ab","bc","... 阅读全文

posted @ 2015-08-19 23:49 Eason Liu 阅读(544) 评论(0) 推荐(0)

[LintCode] Trapping Rain Water II
摘要:Trapping Rain Water IIGivennxmnon-negative integers representing an elevation map 2d where the area of each cell is1x1, compute how much water it is a... 阅读全文

posted @ 2015-08-19 22:15 Eason Liu 阅读(2302) 评论(0) 推荐(0)

[LintCode] Coins in a Line III
摘要:Coins in a Line IIIThere arencoins in a line. Two players take turns to take a coin from one of the ends of the line until there are no more coins lef... 阅读全文

posted @ 2015-08-18 23:47 Eason Liu 阅读(2319) 评论(0) 推荐(0)