/leetcode

Leetcode solutions

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

leetcode_java

Leetcode solutions in Java edition.

Dectinc_Chen

Solving Problem list

Solved Problem list

  • [Product of Array Except Self](md/Product of Array Except Self.md) - 2015-10-23
  • [Delete Node in a Linked List](md/Delete Node in a Linked List.md) - 2015-10-23
  • [Lowest Common Ancestor of a Binary Tree](md/Lowest Common Ancestor of a Binary Tree.md) - 2015-10-23
  • [Lowest Common Ancestor of a Binary Search Tree](md/Lowest Common Ancestor of a Binary Search Tree.md) - 2015-10-11
  • [Palindrome Linked List](md/Palindrome Linked List.md) - 2015-10-06
  • [Number of Digit One](md/Number of Digit One.md) - 2015-10-06
  • [Implement Queue using Stacks](md/Implement Queue using Stacks.md) - 2015-10-06
  • [Kth Smallest Element in a BST](md/Kth Smallest Element in a BST.md) - 2015-09-22
  • [Majority Element II](md/Majority Element II.md) - 2015-09-22
  • [Summary Ranges](md/Summary Ranges.md) - 2015-09-22
  • [Basic Calculator II](md/Basic Calculator II.md) - 2015-09-22
  • [Implement Stack using Queues](md/Implement Stack using Queues.md) - 2015-09-22
  • [Basic Calculator](md/Basic Calculator.md) - 2015-09-22
  • [Rectangle Area](md/Rectangle Area.md) - 2015-09-22
  • [Count Complete Tree Nodes](md/Count Complete Tree Nodes.md) - 2015-09-22
  • [Maximal Square](md/Maximal Square.md) - 2015-09-21
  • [The Skyline Problem](md/The Skyline Problem.md) - 2015-09-19
  • [Ugly Number II](md/Ugly Number II.md) - 2015-09-19
  • [Ugly Number](md/Ugly Number.md) - 2015-09-18
  • [First Bad Version](md/First Bad Version.md) - 2015-09-18
  • [Invert Binary Tree](md/Invert Binary Tree.md) - 2015-08-10
  • [Search a 2D Matrix II](md/Search a 2D Matrix II.md) - 2015-08-04
  • [Combination Sum III](md/Combination Sum III.md) - 2015-07-09
  • [Kth Largest Element in an Array](md/Kth Largest Element in an Array.md) - 2015-07-09
  • [Shortest Palindrome](md/Shortest Palindrome.md) - 2015-07-09
  • [Contains Duplicate III](md/Contains Duplicate III.md) - 2015-07-09
  • [Contains Duplicate II](md/Contains Duplicate II.md) - 2015-07-08
  • [Contains Duplicate](md/Contains Duplicate.md) - 2015-07-08
  • [House Robber II](md/House Robber II.md) - 2015-07-08
  • [Word Search II](md/Word Search II.md) - 2015-07-08
  • [Add and Search Word - Data structure design](md/Add and Search Word - Data structure design.md) - 2015-07-08
  • [Course Schedule II](md/Course Schedule II.md) - 2015-07-08
  • [Minimum Size Subarray Sum](md/Minimum Size Subarray Sum.md) - 2015-07-07
  • [Implement Trie (Prefix Tree)](md/Implement Trie (Prefix Tree).md) - 2015-07-07
  • [Course Schedule](md/Course Schedule.md) - 2015-07-07
  • [Reverse Linked List](md/Reverse Linked List) - 2015-07-07
  • [Isomorphic Strings](md/Isomorphic Strings.md) - 2015-05-08
  • [Longest Substring Without Repeating Characters](md/Longest Substring Without Repeating Characters.md) - update 2015-04-29 - 2014-04-24
  • [Count Primes](md/Count Primes.md) - 2015-04-28
  • [Remove Linked List Elements](md/Remove Linked List Elements.md) - 2015-04-28
  • [Happy Number](md/Happy Number.md) - 2015-04-28
  • [Single Number II](md/Single Number II.md) - update 2015-04-25 - 2014-04-24
  • [Spiral Matrix](md/Spiral Matrix.md) - update 2015-04-25 - 2014-04-24
  • [Single Number](md/Single Number.md) - update 2015-04-24 - 2014-04-23
  • [Reverse Integer](md/Reverse Integer.md) - update 2015-04-24 - 2014-04-23
  • [Same Tree](md/Same Tree.md) - update 2015-04-23 - 2014-04-23
  • [Reverse Words in a String](md/Reverse Words in a String.md) - update 2015-04-23 - 2014-04-23
  • [Maximum Depth of Binary Tree](md/Maximum Depth of Binary Tree.md) - update 2015-04-23 - 2014-04-23
  • [Best Time to Buy and Sell Stock II](md/Best Time to Buy and Sell Stock II.md) - update 2015-04-23 - 2014-04-23
  • [Bitwise AND of Numbers Range](md/Bitwise AND of Numbers Range.md) - 2015-04-22
  • [Number of Islands](md/Number of Islands.md) - 2015-04-21
  • [Binary Tree Right Side View](md/Binary Tree Right Side View.md) - 2015-04-21
  • [House Robber](md/House Robber.md) - 2015-04-21
  • [Dungeon Game](md/Dungeon Game.md) - 2015-04-21
  • [Binary Search Tree Iterator](md/Binary Search Tree Iterator.md) - 2015-04-20
  • [Fraction to Recurring Decimal](md/Fraction to Recurring Decimal.md) - 2015-04-20
  • [Maximum Gap](md/Maximum Gap.md) - 2015-04-20
  • [Find Peak Element](md/Find Peak Element.md) - 2015-04-20
  • [Find Minimum in Rotated Sorted Array II](md/Find Minimum in Rotated Sorted Array II.md) - 2015-04-20
  • [Find Minimum in Rotated Sorted Array](md/Find Minimum in Rotated Sorted Array.md) - 2015-04-20
  • [Maximum Product Subarray](md/Maximum Product Subarray.md) - 2015-04-20
  • [Evaluate Reverse Polish Notation](md/Evaluate Reverse Polish Notation.md) - 2015-04-17
  • [Max Points on a Line](md/Max Points on a Line.md) - 2015-04-16
  • [Sort List](md/Sort List.md) - 2015-04-16
  • [Insertion Sort List](md/Insertion Sort List.md) - 2015-04-16
  • [LRU Cache](md/LRU Cache.md) - 2015-04-15
  • [Reorder List](md/Reorder List.md) - 2015-04-15
  • [Word Break II](md/Word Break II.md) - 2015-04-15
  • [Word Break](md/Word Break.md) - 2015-04-15
  • [Linked List Cycle II](md/Linked List Cycle II.md) - 2015-04-14
  • [Copy List with Random Pointer](md/Copy List with Random Pointer.md) - 2015-04-13
  • Candy - 2015-04-13
  • [Gas Station](md/Gas Station.md) - 2015-04-13
  • [Clone Graph](md/Clone Graph.md) - 2015-04-12
  • [Palindrome Partitioning II](md/Palindrome Partitioning II.md) - 2015-04-12
  • [Palindrome Partitioning](md/Palindrome Partitioning.md) - 2015-04-12
  • [Surrounded Regions](md/Surrounded Regions.md) - 2015-04-12
  • [Sum Root to Leaf Numbers](md/Sum Root to Leaf Numbers.md) - 2015-04-10
  • [Word Ladder II](md/Word Ladder II.md) - 2015-04-10
  • [Longest Consecutive Sequence](md/Longest Consecutive Sequence.md) - 2015-04-09
  • [Word Ladder](md/Word Ladder.md) - 2015-04-09
  • [Binary Tree Maximum Path Sum](md/Binary Tree Maximum Path Sum.md) - 2015-04-07
  • Triangle - 2015-04-06
  • [Populating Next Right Pointers in Each Node II](md/Populating Next Right Pointers in Each Node II.md) - 2015-04-05
  • [Distinct Subsequences](md/Distinct Subsequences.md) - 2015-04-03
  • [Flatten Binary Tree to Linked List](md/Flatten Binary Tree to Linked List.md) - 2015-04-02
  • [Path Sum II](md/Path Sum II.md) - 2015-04-02
  • [Convert Sorted List to Binary Search Tree](md/Convert Sorted List to Binary Search Tree.md) - 2015-04-02
  • [Convert Sorted Array to Binary Search Tree](md/Convert Sorted Array to Binary Search Tree.md) - 2015-04-02
  • [Construct Binary Tree from Inorder and Postorder Traversal](md/Construct Binary Tree from Inorder and Postorder Traversal.md) - 2015-04-02
  • [Construct Binary Tree from Preorder and Inorder Traversal](md/Construct Binary Tree from Preorder and Inorder Traversal.md) - 2015-04-02
  • [Recover Binary Search Tree](md/Recover Binary Search Tree.md) - 2015-04-02
  • [Validate Binary Search Tree](md/Validate Binary Search Tree.md) - 2015-04-01
  • [Unique Binary Search Trees II](md/Unique Binary Search Trees II.md) - 2015-04-01
  • [Restore IP Addresses](md/Restore IP Addresses.md) - 2015-04-01
  • [Reverse Linked List II](md/Reverse Linked List II.md) - 2015-04-01
  • [Decode Ways](md/Decode Ways.md) - 2015-04-01
  • [Subsets II](md/Subsets II.md) - 2015-04-01
  • [Gray Code](md/Gray Code.md) - 2015-04-01
  • [Scramble String](md/Scramble String.md) - 2015-04-01
  • [Partition List](md/Partition List.md) - 2015-04-01
  • [Maximal Rectangle](md/Maximal Rectangle.md) - 2015-04-01
  • [Largest Rectangle in Histogram](md/Largest Rectangle in Histogram.md) - 2015-03-31
  • [Remove Duplicates from Sorted List II](md/Remove Duplicates from Sorted List II.md) - 2015-03-25
  • [Remove Duplicates from Sorted Array II](md/Remove Duplicates from Sorted Array II.md) - update 2015-03-25 - 2014-05-03
  • [Word Search](md/Word Search.md) - 2015-03-25
  • Subsets - 2015-03-24
  • Combinations - 2015-03-24
  • [Sort Colors](md/Sort Colors.md) - 2015-03-24
  • [Search a 2D Matrix](md/Search a 2D Matrix.md) - 2015-03-24
  • [Set Matrix Zeroes](md/Set Matrix Zeroes.md) - 2015-03-24
  • [Edit Distance](md/Edit Distance.md) - 2015-03-24
  • [Simplify Path](md/Simplify Path.md) - 2015-03-23
  • [Text Justification](md/Text Justification.md) - 2015-03-23
  • [Minimum Path Sum](md/Minimum Path Sum.md) - 2015-03-23
  • [Unique Paths II](md/Unique Paths II.md) - 2015-03-23
  • [Permutations II](md/Permutations II.md) - 2015-03-22
  • Permutations - 2015-03-22
  • [Unique Paths](md/Unique Paths.md) - 2015-03-22
  • [Rotate List](md/Rotate List.md) - 2015-03-22
  • [Permutation Sequence](md/Permutation Sequence.md) - 2015-03-22
  • [Spiral Matrix II](md/Spiral Matrix II.md) - 2015-03-22
  • [Merge Intervals](md/Merge Intervals.md) - 2015-03-22
  • [Pow(x, n)](md/Pow(x, n).md) - 2015-03-22
  • Anagrams - 2015-03-22
  • [Rotate Image](md/Rotate Image.md) - 2015-03-22
  • [Wildcard Matching](md/Wildcard Matching.md) - 2015-03-19
  • [Largest Number](md/Largest Number.md) - 2015-03-19
  • [Jump Game II](md/Jump Game II.md) - 2015-03-19
  • [Jump Game](md/Jump Game.md) - 2015-03-19
  • [Best Time to Buy and Sell Stock IV](md/Best Time to Buy and Sell Stock IV.md) - 2015-03-19
  • [Repeated DNA Sequences](md/Repeated DNA Sequences.md) - 2015-03-19
  • [Length of Last Word](md/Length of Last Word.md) - 2015-03-19
  • [Add Binary](md/Add Binary.md) - 2015-03-19
  • [Merge Sorted Array](md/Merge Sorted Array.md) - 2015-03-19
  • [Binary Tree Level Order Traversal](md/Binary Tree Level Order Traversal.md) - 2015-03-19
  • [Binary Tree Level Order Traversal II](md/Binary Tree Level Order Traversal II.md) - 2015-03-19
  • [Path Sum](md/Path Sum.md) - 2015-03-19
  • [Pascal's Triangle II](md/Pascal's Triangle II.md) - 2015-03-18
  • [Min Stack](md/Min Stack.md) - 2015-03-18
  • [Intersection of Two Linked Lists](md/Intersection of Two Linked Lists.md) - 2015-03-18
  • [Reverse Bits](md/Reverse Bits.md) - 2015-03-18
  • [Compare Version Numbers](md/Compare Version Numbers.md) - 2015-03-18
  • [Majority Element](md/Majority Element.md) - 2015-03-18
  • [Factorial Trailing Zeroes](md/Factorial Trailing Zeroes.md) - 2015-03-17
  • [Number of 1 Bits](md/Number of 1 Bits.md) - 2015-03-17
  • [Rotate Array](md/Rotate Array.md) - 2015-03-17
  • [Multiply Strings](md/Multiply Strings.md) - 2015-03-16
  • [First Missing Positive](md/First Missing Positive.md) - 2015-03-16
  • [Combination Sum II](md/Combination Sum II.md) - 2015-03-16
  • [Combination Sum](md/Combination Sum.md) - 2015-03-16
  • [Valid Sudoku](md/Valid Sudoku.md) - 2015-03-10
  • [Search for a Range](md/Search for a Range.md) - 2015-03-10
  • [Longest Valid Parentheses](md/Longest Valid Parentheses.md) - 2015-03-10
  • [Next Permutation](md/Next Permutation.md) - 2015-03-10
  • [Substring with Concatenation of All Words](md/Substring with Concatenation of All Words.md) - 2015-03-10
  • [Divide Two Integers](md/Divide Two Integers.md) - 2015-03-09
  • [Implement strStr()](md/Implement strStr().md) - 2015-03-09
  • [Remove Element](md/Remove Element.md) - 2015-03-09
  • [Remove Duplicates from Sorted Array](md/Remove Duplicates from Sorted Array.md) - 2015-03-09
  • [Reverse Nodes in k-Group](md/Reverse Nodes in k-Group.md) - 2015-03-09
  • [Merge k Sorted Lists](md/Merge k Sorted Lists.md) - 2015-03-08
  • [Valid Parentheses](md/Valid Parentheses.md) - 2015-03-08
  • [Remove Nth Node From End of List](md/Remove Nth Node From End of List.md) - 2015-03-08
  • 4Sum - 2015-03-08
  • [3Sum Closest](md/3Sum Closest.md) - 2015-03-06
  • 3Sum - 2015-03-06
  • [Container With Most Water](md/Container With Most Water.md) - 2015-03-06
  • [String to Integer (atoi)](md/String to Integer (atoi).md) - 2015-03-06
  • [Valid Number](md/Valid Number.md) - 2015-03-06
  • [Interleaving String](md/Interleaving String.md) - 2015-03-06
  • [Palindrome Number](md/Palindrome Number.md) - 2015-03-05
  • [ZigZag Conversion](md/ZigZag Conversion.md) - 2015-03-05
  • [Longest Palindromic Substring](md/Longest Palindromic Substring.md) - 2015-03-05
  • [Maximum Subarray](md/Maximum Subarray.md) - 2015-03-04
  • [N-Queens II](md/N-Queens II.md) - 2015-03-03
  • N-Queens - 2015-03-03
  • [Populating Next Right Pointers in Each Node](md/Populating Next Right Pointers in Each Node.md) - 2015-03-03
  • [Binary Tree Postorder Traversal](md/Binary Tree Postorder Traversal.md) - 2015-03-02
  • [Binary Tree Inorder Traversal](md/Binary Tree Inorder Traversal.md) - update 2015-03-02 - 2014-05-23
  • [Binary Tree Preorder Traversal](md/Binary Tree Preorder Traversal.md) - 2015-03-02
  • [Linked List Cycle](md/Linked List Cycle.md) - 2015-03-02
  • [Excel Sheet Column Number](md/Excel Sheet Column Number.md) - 2015-03-02
  • [Excel Sheet Column Title](md/Excel Sheet Column Title.md) - 2015-03-02
  • [Unique Binary Search Trees](md/Unique Binary Search Trees.md) - 2015-03-02
  • [Binary Tree Zigzag Level Order Traversal](md/Binary Tree Zigzag Level Order Traversal.md) - 2014-05-28
  • [Insert Interval](md/Insert Interval.md) - 2014-05-28
  • [Merge Two Sorted Lists](md/Merge Two Sorted Lists.md) - 2014-05-27
  • [Remove Duplicates from Sorted List](md/Remove Duplicates from Sorted List.md) - 2014-05-27
  • [Climbing Stairs](md/Climbing Stairs.md) - 2014-05-27
  • [Integer to Roman](md/Integer to Roman.md) - 2014-05-26
  • [Search in Rotated Sorted Array II](md/Search in Rotated Sorted Array II.md) - 2014-05-22
  • [Search in Rotated Sorted Array](md/Search in Rotated Sorted Array.md) - 2014-05-22
  • [Regular expression matching](md/Regular expression matching.md) - 2014-05-22
  • [Minimum Depth of Binary Tree](md/Minimum Depth of Binary Tree.md) - 2014-05-21
  • [Trapping Rain Water](md/Trapping Rain Water.md) - 2014-05-20
  • [Best Time to Buy and Sell Stock III](md/Best Time to Buy and Sell Stock III.md) - 2014-05-19
  • [Minimum Window Substring](md/Minimum Window Substring.md) - 2014-05-18
  • [Swap Nodes in Pairs](md/Swap Nodes in Pairs.md) - 2014-05-17
  • [Roman to Integer](md/Roman to Integer.md) - 2014-05-16
  • [Letter Combinations of a Phone Number](md/Letter Combinations of a Phone Number.md) - 2014-05-15
  • [Count and Say](md/Count and Say.md) - 2014-05-14
  • [Median of Two Sorted Arrays](md/Median of Two Sorted Arrays.md) - 2014-05-13
  • [Two Sum](md/Two Sum.md) - 2014-05-13
  • [Search Insert Position](md/Search Insert Position.md) - 2014-05-12
  • [Pascal's Triangle](md/Pascal's Triangle.md) - 2014-05-12
  • [Longest Common Prefix](md/Longest Common Prefix.md) - 2014-05-12
  • [Valid Palindrome](md/Valid Palindrome.md) - 2014-05-12
  • [Symmetric Tree](md/Symmetric Tree.md) - 2014-05-12
  • [Add Two Numbers](md/Add Two Numbers.md) - 2014-05-12
  • [Balanced Binary Tree](md/Balanced Binary Tree.md) - 2014-05-12
  • [Generate Parentheses](md/Generate Parentheses.md) - 2014-05-08
  • [Plus One](md/Plus One.md) - 2014-05-07
  • [Best Time to Buy and Sell Stock](md/Best Time to Buy and Sell Stock.md) - 2014-04-29

@ Copyrights of problems belong to Leetcode