Thoughts and implementation of leetcode
Switch branches/tags
Nothing to show
Clone or download
Image Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Image .gitignore
Image README.md
Image logoleetcode.jpg
Image problem#001 Two Sum
Image problem#002 Add Two Numbers
Image problem#003 Longest Substring Without Repeating Characters
Image problem#004 Median of Two Sorted Array
Image problem#005 Longest Palindromic Substring
Image problem#007 Reverse Integer
Image problem#010 Regular Expression Matching
Image problem#011 container with most water
Image problem#012 integer to roman
Image problem#013 Roman to Integer
Image problem#014 Longest Common Prefix
Image problem#015 3Sum
Image problem#016 3Sum Closest
Image problem#017 Letter Combinations of a Phone Number
Image problem#018 4Sum
Image problem#019 Remove Nth Node From End of List
Image problem#020 Valid Parentheses
Image problem#021 Merge Two Sorted Lists
Image problem#022 Generate Parentheses
Image problem#023 Merge k Sorted Lists
Image problem#024 Swap Nodes in Pairs
Image problem#025 Reverse Nodes in k-Group
Image problem#026 Remove Duplicates from Sorted Array
Image problem#027 Remove Element
Image problem#028 Implement strStr()
Image problem#029 Divide Two Integers
Image problem#030 Substring with Concatenation of All Words
Image problem#031 Next Permutation
Image problem#032 Longest Valid Parentheses
Image problem#033 Search in Rotated Sorted Array
Image problem#034 Search for a Range
Image problem#035 Search Insert Position
Image problem#036 Valid Sudoku
Image problem#037 Sudoku Solver
Image problem#038 Count and Say
Image problem#039 Combination Sum
Image problem#040 Combination Sum II
Image problem#041 First Missing Positive
Image problem#042 Trapping Rain Water
Image problem#043 Multiply Strings
Image problem#044 Wildcard Matching
Image problem#045 Jump Game II
Image problem#046 Permutations
Image problem#047 Permutations II
Image problem#048 Rotate Image
Image problem#049 Group Anagrams
Image problem#050 Pow(x, n)
Image problem#051 N-Queens
Image problem#052 N-Queens II
Image problem#053 Maximum Subarray
Image problem#054 Spiral Matrix
Image problem#055 Jump Game
Image problem#056 Merge Intervals
Image problem#057 Interval Insert
Image problem#058 Length of Last Word
Image problem#059 Spiral Matrix II
Image problem#060 Permutation Sequence
Image problem#061 Rotate List
Image problem#062 Unique Paths
Image problem#063 Unique Paths II
Image problem#064 Minimum Path Sum
Image problem#065 Valid Number
Image problem#066 Plus one
Image problem#067 Add Binary
Image problem#068 Text Justification
Image problem#069 Sqrt(x)
Image problem#070 Climbing Stairs
Image problem#071 Simplify Path
Image problem#072 Edit Distance
Image problem#073 Set Matrix Zeros
Image problem#074 Search a 2D Matrix
Image problem#075 Sort Colors
Image problem#076 Minimum Window Substring
Image problem#077 Combinations
Image problem#078 Subsets
Image problem#079 Word Search
Image problem#080 Remove Duplicates from Sorted Array II
Image problem#081 Search in Rotated Sorted Array II
Image problem#082 Remove Duplicates from Sorted List II
Image problem#083 Remove Duplicates from Sorted List
Image problem#084 Largest Rectangle in Histogram
Image problem#085 Maximal Rectangle
Image problem#086 Partition List
Image problem#087 Scramble String
Image problem#088 Merge Sorted Array
Image problem#089 Grey code
Image problem#090 Subset II
Image problem#091 Decode Ways
Image problem#092 Reverse Linked List II
Image problem#093 Restore IP Addresses
Image problem#094 Binary Tree Inorder Traversal
Image problem#095 Unique Binary Search Tree
Image problem#096 Unique Binary Search Tree
Image problem#097 Interleaving String
Image problem#098 Validate Binary Search Tree
Image problem#099 Recover Binary Search Tree
Image problem#100 Same Tree
Image problem#101 Symmetric Tree
Image problem#102 Binary Tree Level Order Traversal
Image problem#103 Binary Tree Zigzag Level Order Traversal
Image problem#104 Maximum Depth of Binary Tree
Image problem#105 Construct Binary Tree from Preorder and Inorder Traversal
Image problem#106 Construct Binary Tree from Inorder and Postorder Traversal
Image problem#107 Binary Tree Level Order Traversal II
Image problem#108 Convert Sorted Array to Binary Search Tree
Image problem#109 Convert Sorted List to Binary Search Tree
Image problem#110 Balanced Binary Tree
Image problem#111 Minimum Depth of Binary Tree
Image problem#112 Path Sum
Image problem#113 Path Sum II
Image problem#114 Flatten Binary Tree to Linked List
Image problem#115 Dinstinct Subsequences
Image problem#116 Populating Next Right Pointers in Each Node
Image problem#117 Populating Next Right Pointers in Each Node II
Image problem#118 Pascal's Triangle
Image problem#119 Pascal's Triangle II
Image problem#120 Triangle
Image problem#121 Best Time to Buy and Sell Stock
Image problem#122 Best Time to Buy and Sell Stock II
Image problem#128 Longest Consecutive Sequence
Image problem#139 Word Break
Image problem#140 Word Break II
Image problem#151 Reverse Words in a String
Image problem#157 Read N Characters Given Read4
Image problem#198 House Robber
Image problem#209 Minimum Size Subarray
Image problem#211 Add and Search Word - Data structure design
Image problem#213 House Robber II
Image problem#215 Kth Largest Element in an Array
Image problem#235 Lowest Common Ancestor for a Binary Search Tree
Image problem#239 Sliding Window Maximum
Image problem#283 Move Zeros
Image problem#292 Nim Game
Image problem#300 Longest Increasing Subsequence
Image problem#325 Maximum Size Subarray
Image problem#350 Intersection of Two Array
Image problem#628 Maximum Product of Three Numbers
Image problem#629 K Inverse Pairs Array
Image problem#630 Course Schedule III
Image problem#633 Sum of Square Numbers
Image problem#635 Design Log Storage System
Image problem#637 Average of Levels in Binary Tree
Image problem#640 Solve the Equation

README.md

Leetcode

In C++ Thoughts and implementation of leetcode

sample