随笔分类 - LeetCode
摘要:LeetCode: Tags-[Dynamic Programming]
阅读全文
摘要:Tags:Bit Manipulation
阅读全文
摘要:Tags:Tree 94. Binary Tree Inorder Traversal:https://leetcode.com/problems/binary-tree-inorder-traversal/ 中序遍历: (解法1:递归; 利用addAll 或者 helper(root,rst);
阅读全文
摘要:LeetCode: Tags-[Linked List] 2. Add Two Numbers: https://leetcode.com/problems/add-two-numbers/ 两个单链表代表倒序的数字, 求和: (Input: (2 -> 4 -> 3) + (5 -> 6 -> 4
阅读全文
摘要:Tags: Hash Table 3. Longest Substring Without Repeating Characters:https://leetcode.com/problems/longest-substring-without-repeating-characters/ 没有重复字
阅读全文
摘要:Tags: Array Difficulty: Medium 11. Container With Most Water: https://leetcode.com/problems/container-with-most-water/ n条纵线,找出两条线使得容器最大:(题意:假设ai,aj Cm
阅读全文
摘要:Tags: Array Difficulty:Easy 1. Two Sum:https://leetcode.com/problems/two-sum/ 两数和,返回下标数组:(利用HashMap<Key,Value>遍历,其中用到containKey,get(key)--获取value; put
阅读全文

浙公网安备 33010602011771号