摘要: Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regu... 阅读全文
posted @ 2015-05-27 01:59 卖程序的小歪 阅读(261) 评论(0) 推荐(0)
摘要: Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u... 阅读全文
posted @ 2015-05-27 01:07 卖程序的小歪 阅读(166) 评论(0) 推荐(0)
摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr... 阅读全文
posted @ 2015-05-27 00:23 卖程序的小歪 阅读(224) 评论(0) 推荐(0)