摘要: Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return 0 i... 阅读全文
posted @ 2015-06-18 16:53 tjuloading 阅读(172) 评论(0) 推荐(0)
摘要: Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs are consist of lowercase lettersa-z.思路: 构建一个简单的字典树,要求实现... 阅读全文
posted @ 2015-06-18 15:52 tjuloading 阅读(136) 评论(0) 推荐(0)