随笔分类 -  LeetCode

摘要:LeetCode: Tags-[Dynamic Programming] 阅读全文
posted @ 2017-04-24 18:34 不闻余物 阅读(91) 评论(0) 推荐(0)
摘要:Tags:Bit Manipulation 阅读全文
posted @ 2017-01-23 15:44 不闻余物 阅读(120) 评论(0) 推荐(0)
摘要:Tags:Tree 94. Binary Tree Inorder Traversal:https://leetcode.com/problems/binary-tree-inorder-traversal/ 中序遍历: (解法1:递归; 利用addAll 或者 helper(root,rst); 阅读全文
posted @ 2017-01-18 21:41 不闻余物 阅读(190) 评论(0) 推荐(0)
摘要:LeetCode: Tags-[Linked List] 2. Add Two Numbers: https://leetcode.com/problems/add-two-numbers/ 两个单链表代表倒序的数字, 求和: (Input: (2 -> 4 -> 3) + (5 -> 6 -> 4 阅读全文
posted @ 2016-12-21 17:21 不闻余物 阅读(179) 评论(0) 推荐(0)
摘要:Tags: Hash Table 3. Longest Substring Without Repeating Characters:https://leetcode.com/problems/longest-substring-without-repeating-characters/ 没有重复字 阅读全文
posted @ 2016-12-17 23:06 不闻余物 阅读(130) 评论(0) 推荐(0)
摘要:Tags: Array Difficulty: Medium 11. Container With Most Water: https://leetcode.com/problems/container-with-most-water/ n条纵线,找出两条线使得容器最大:(题意:假设ai,aj Cm 阅读全文
posted @ 2016-12-13 16:34 不闻余物 阅读(203) 评论(0) 推荐(0)
摘要:Tags: Array Difficulty:Easy 1. Two Sum:https://leetcode.com/problems/two-sum/ 两数和,返回下标数组:(利用HashMap<Key,Value>遍历,其中用到containKey,get(key)--获取value; put 阅读全文
posted @ 2016-12-10 18:34 不闻余物 阅读(187) 评论(0) 推荐(0)