摘要: 题目描述 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there i 阅读全文
posted @ 2019-06-13 15:12 你好哇傻小妞 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Implement a trie with insert, search, and startsWith methods. 题目大意 实现对一棵树的插入、搜索以及前序查找操作。 (树的每个节点代表一个小写字母,从根节点到叶节点代表一个完整的单词) 示例 E Trie trie = new 阅读全文
posted @ 2019-06-13 14:28 你好哇傻小妞 阅读(119) 评论(0) 推荐(0) 编辑