摘要:
https://leetcode.com/problems/implement-trie-prefix-tree/#/description Implement a trie with insert, search, and startsWith methods. Note:You may assu 阅读全文
摘要:
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { ... 阅读全文
摘要:
public class Solution { public int smallestFactorization(int a) { if (a factor = new ArrayList(); for (int i = 9; i > 1; i--) { while (a % i == 0) { f... 阅读全文
摘要:
https://leetcode.com/problems/maximum-distance-in-arrays/ 阅读全文
摘要:
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ 类似于 binary search 阅读全文
摘要:
https://leetcode.com/problems/insertion-sort-list/ 思路:从旧链表中取出来,插入新链表中。 阅读全文
摘要:
https://leetcode.com/problems/sort-list/ 阅读全文
摘要:
https://leetcode.com/problems/trapping-rain-water-ii/ 参考:http://www.cnblogs.com/grandyang/p/5928987.html 阅读全文
摘要:
https://leetcode.com/problems/find-duplicate-file-in-system/ 阅读全文
摘要:
https://leetcode.com/problems/minimum-index-sum-of-two-lists/ 阅读全文