Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

albertzqgit/LeetCode

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

261 Commits
261 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode solutions in C++ 11. (From Easy to Hard)

NO. Title Solution Add Date Difficulty
1 Single Number C++ 2014/10/15 Medium
2 Maximum Depth of Binary Tree C++ 2014/10/16 Easy
3 Same Tree C++ 2014/10/17 Easy
4 Reverse Integer C++ 2014/10/18 Easy
5 Best Time to Buy and Sell Stock II C++ 2014/10/19 Medium
6 Unique Binary Search Trees C++ 2014/10/20 Medium
7 Linked List Cycle C++ 10/21/2014 Medium
8 Binary Tree Inorder Traversal C++ 10/22/2014 Medium
9 Binary Tree Preorder Traversal C++ 10/23/2014 Medium
10 Populating Next Right Pointers in Each Node C++ 10/24/2014 Medium
11 Search Insert Position C++ 10/25/2014 Medium
12 Remove Duplicates from Sorted List C++ 10/26/2014 Easy
13 Climbing Stairs C++ 10/27/2014 Easy
14 Maximum Subarray C++ 10/28/2014 Medium
15 N-Queens II C++ 10/29/2014 Hard
16 Roman to Integer C++ 10/30/2014 Easy
17 Integer to Roman C++ 10/31/2014 Medium
18 Single Number II C++ 11/1/2014 Medium
19 Merge Two Sorted Lists C++ 11/2/2014 Easy
20 Remove Element C++ 11/3/2014 Easy
21 Convert Sorted Array to Binary Search Tree C++ 11/4/2014 Medium
22 Balanced Binary Tree C++ 11/5/2014 Easy
23 Swap Nodes in Pairs C++ 11/6/2014 Medium
24 Remove Duplicates from Sorted Array C++ 11/7/2014 Easy
25 Sort Colors C++ 11/8/2014 Medium
26 Merge Sorted Array C++ 11/9/2014 Easy
27 Symmetric Tree C++ 11/10/2014 Easy
28 Gray Code C++ 11/11/2014 Medium
29 Unique Paths C++ 11/12/2014 Medium
30 Plus One C++ 11/13/2014 Easy
31 Generate Parentheses C++ 11/14/2014 Medium
32 Pascal's Triangle C++ 11/15/2014 Easy
33 Container With Most Water C++ 11/16/2014 Medium
34 Permutations C++ 11/17/2014 Medium
35 Rotate Image C++ 11/18/2014 Medium
36 Search a 2D Matrix C++ 11/19/2014 Medium
37 Find Minimum in Rotated Sorted Array C++ 11/20/2014 Medium
38 Minimum Path Sum C++ 11/21/2014 Medium
39 Best Time to Buy and Sell Stock C++ 11/22/2014 Medium
40 Binary Tree Level Order Traversal II C++ 11/23/2014 Easy
41 Search in Rotated Sorted Array II C++ 11/24/2014 Medium
42 Binary Tree Postorder Traversal C++ 11/25/2014 Hard
43 Linked List Cycle II C++ 11/26/2014 Medium
44 Set Matrix Zeroes C++ 11/27/2014 Medium
45 Spiral Matrix II C++ 11/28/2014 Medium
46 Remove Duplicates from Sorted Array II C++ 11/29/2014 Medium
47 Populating Next Right Pointers in Each Node II C++ 11/30/2014 Hard
48 Binary Tree Level Order Traversal C++ 12/1/2014 Easy
49 Path Sum C++ 12/2/2014 Easy
50 Pascal's Triangle II C++ 12/3/2014 Easy
51 Combinations C++ 12/4/2014 Medium
52 Sum Root to Leaf Numbers C++ 12/5/2014 Medium
53 Remove Nth Node from End of List C++ 12/6/2014 Easy
54 Minimum Depth of Binary Tree C++ 12/7/2014 Easy
55 Length of Last Word C++ 12/8/2014 Easy
56 Trapping Rain Water C++ 12/9/2014 Hard
57 Palindrome Number C++ 12/10/2014 Easy
58 Search in Rotated Sorted Array C++ 12/11/2014 Hard
59 Valid Parentheses C++ 12/12/2014 Easy
60 Flatten Binary Tree to Linked List C++ 12/13/2014 Medium
61 Longest Consecutive Sequence C++ 12/14/2014 Hard
62 Unique Paths II C++ 12/15/2014 Medium
63 Subsets C++ 12/16/2014 Medium
64 Valid Sudoku C++ 12/17/2014 Easy
65 Unique Binary Search Trees II C++ 12/18/2014 Medium
66 Convert Sorted List to Binary Search Tree C++ 12/19/2014 Medium
67 Search for a Range C++ 12/20/2014 Medium
68 Jump Game C++ 12/21/2014 Medium
69 Count and Say C++ 12/22/2014 Easy
70 Longest Common Prefix C++ 12/23/2014 Easy
71 Subsets II C++ 12/24/2014 Medium
72 Partition List C++ 12/25/2014 Medium
73 3Sum Closest C++ 12/26/2014 Medium
74 Path Sum II C++ 12/27/2014 Medium
75 Combination Sum C++ 12/28/2014 Medium
76 Triangle C++ 12/29/2014 Medium
77 Construct Binary Tree from Inorder and Postorder Traversal C++ 12/30/2014 Medium
78 Binary Tree Zigzag Level Order Traversal C++ 12/31/2014 Medium
79 Construct Binary Tree from Preorder and Inorder Traversal C++ 1/1/2015 Medium
80 Letter Combinations of a Phone Number C++ 1/2/2015 Medium
81 Reverse Linked List II C++ 1/3/2015 Medium
82 Pow(x, n) C++ 1/4/2015 Medium
83 N-Queens C++ 1/5/2015 Hard
84 Gas Station C++ 1/6/2015 Medium
85 Palindrome Partitioning C++ 1/7/2015 Medium
86 Validate Binary Search Tree C++ 1/8/2015 Medium
87 Add Binary C++ 1/9/2015 Easy
88 Edit Distance C++ 1/10/2015 Hard
89 Next Permutation C++ 1/11/2015 Medium
90 Insertion Sort List C++ 1/12/2015 Medium
91 Reverse Nodes in k-Group C++ 1/13/2015 Hard
92 Distinct Subsequences C++ 1/14/2015 Hard
93 Permutations II C++ 1/15/2015 Hard
94 Remove Duplicates from Sorted List II C++ 1/16/2015 Medium
95 Jump Game II C++ 1/17/2015 Hard
96 Combination Sum II C++ 1/18/2015 Medium
97 Anagrams C++ 1/19/2015 Medium
98 Recover Binary Search Tree C++ 1/20/2015 Hard
99 ZigZag Conversion C++ 1/21/2015 Easy
100 Copy List with Random Pointer C++ 1/22/2015 Hard
101 Clone Graph C++ 1/23/2015 Medium
102 Add Two Numbers C++ 1/24/2015 Medium
103 Scramble String C++ 1/25/2015 Hard
104 Valid Palindrome C++ 1/26/2015 Easy
105 First Missing Positive C++ 1/27/2015 Hard
106 Best Time to Buy and Sell Stock III C++ 1/28/2015 Hard
107 Sqrt(x) C++ 1/29/2015 Medium
108 Permutation Sequence C++ 1/30/2015 Medium
109 Longest Substring Without Repeating Characters C++ 1/31/2015 Medium
110 Rotate List C++ 2/1/2015 Medium
111 Implement strStr() C++ 2/2/2015 Easy
112 4Sum C++ 2/3/2015 Medium
113 Maximal Rectangle C++ 2/4/2015 Hard
114 Largest Rectangle in Histogram C++ 2/5/2015 Hard
115 Merge k Sorted Lists C++ 2/6/2015 Hard
116 Word Break C++ 2/7/2015 Medium
117 Merge Intervals C++ 2/8/2015 Hard
118 Sudoku Solver C++ 2/9/2015 Hard
119 Longest Palindromic Substring C++ 2/10/2015 Medium
120 Insert Interval C++ 2/11/2015 Hard
121 Spiral Matrix C++ 2/12/2015 Medium
122 Sort List C++ 2/13/2015 Medium
123 Restore IP Addresses C++ 2/14/2015 Medium
124 Multiply Strings C++ 2/15/2015 Medium
125 Reorder List C++ 2/16/2015 Medium
126 Binary Tree Maximum Path Sum C++ 2/17/2015 Hard
127 Regular Expression Matching C++ 2/18/2015 Hard
128 Simplify Path C++ 2/19/2015 Medium
129 Word Search C++ 2/20/2015 Medium
130 Evaluate Reverse Polish Notation C++ 2/21/2015 Medium
131 Longest Valid Parentheses C++ 2/22/2015 Hard
132 Interleaving String C++ 2/23/2015 Hard
133 Candy C++ 2/24/2015 Hard
134 Find Minimum in Rotated Sorted Array II C++ 2/25/2015 Hard
135 Word Ladder C++ 2/26/2015 Medium
136 Two Sum C++ 2/27/2015 Medium
137 Palindrome Partitioning II C++ 2/28/2015 Hard
138 Minimum Window Substring C++ 3/1/2015 Hard
139 Substring with Concatenation of All Words C++ 3/2/2015 Hard
140 Median of Two Sorted Arrays C++ 3/3/2015 Hard
141 3Sum C++ 3/4/2015 Medium
142 Divide Two Integers C++ 3/5/2015 Medium
143 Word Break II C++ 3/6/2015 Hard
144 Decode Ways C++ 3/7/2015 Medium
145 Maximum Product Subarray C++ 3/8/2015 Medium
146 String to Integer (atoi) C++ 3/9/2015 Easy
147 Wildcard Matching C++ 3/10/2015 Hard
148 Surrounded Regions C++ 3/11/2015 Medium
149 Reverse Words in a String C++ 3/12/2015 Medium
150 LRU Cache C++ 3/13/2015 Hard
151 Text Justification C++ 3/14/2015 Hard
152 Word Ladder II C++ 3/15/2015 Hard
153 Valid Number C++ 3/16/2015 Hard
154 Max Points on a Line C++ 3/17/2015 Hard

About

✏️ LeetCode solutions in C++ 11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.