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

Sign up
Appearance settings

wikchicken/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

257 Commits

Repository files navigation

LeetCode

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

NO. Title Solution Add Date Difficulty
1 Single Number [C++](001. Single Number/solution.h) 2014年10月15日 Medium
2 Maximum Depth of Binary Tree [C++](002. Maximum Depth of Binary Tree/solution.h) 2014年10月16日 Easy
3 Same Tree [C++](003. Same Tree/solution.h) 2014年10月17日 Easy
4 Reverse Integer [C++](004. Reverse Integer/solution.h) 2014年10月18日 Easy
5 Best Time to Buy and Sell Stock II [C++](005. Best Time to Buy and Sell Stock II/solution.h) 2014年10月19日 Medium
6 Unique Binary Search Trees [C++](006. Unique Binary Search Trees/solution.h) 2014年10月20日 Medium
7 Linked List Cycle [C++](007. Linked List Cycle/solution.h) 2014年10月21日 Medium
8 Binary Tree Inorder Traversal [C++](008. Binary Tree Inorder Traversal/solution.h) 2014年10月22日 Medium
9 Binary Tree Preorder Traversal [C++](009. Binary Tree Preorder Traversal/solution.h) 2014年10月23日 Medium
10 Populating Next Right Pointers in Each Node [C++](010. Populating Next Right Pointers in Each Node/solution.h) 2014年10月24日 Medium
11 Search Insert Position [C++](011. Search Insert Position/solution.h) 2014年10月25日 Medium
12 Remove Duplicates from Sorted List [C++](012. Remove Duplicates from Sorted List/solution.h) 2014年10月26日 Easy
13 Climbing Stairs [C++](013. Climbing Stairs/solution.h) 2014年10月27日 Easy
14 Maximum Subarray [C++](014. Maximum Subarray/solution.h) 2014年10月28日 Medium
15 N-Queens II [C++](015. N-Queens II/solution.h) 2014年10月29日 Hard
16 Roman to Integer [C++](016. Roman to Integer/solution.h) 2014年10月30日 Easy
17 Integer to Roman [C++](017. Integer to Roman/solution.h) 2014年10月31日 Medium
18 Single Number II [C++](018. Single Number II/solution.h) 2014年11月01日 Medium
19 Merge Two Sorted Lists [C++](019. Merge Two Sorted Lists/solution.h) 2014年11月02日 Easy
20 Remove Element [C++](020. Remove Element/solution.h) 2014年11月03日 Easy
21 Convert Sorted Array to Binary Search Tree [C++](021. Convert Sorted Array to Binary Search Tree/solution.h) 2014年11月04日 Medium
22 Balanced Binary Tree [C++](022. Balanced Binary Tree/solution.h) 2014年11月05日 Easy
23 Swap Nodes in Pairs [C++](023. Swap Nodes in Pairs/solution.h) 2014年11月06日 Medium
24 Remove Duplicates from Sorted Array [C++](024. Remove Duplicates from Sorted Array/solution.h) 2014年11月07日 Easy
25 Sort Colors [C++](025. Sort Colors/solution.h) 2014年11月08日 Medium
26 Merge Sorted Array [C++](026. Merge Sorted Array/solution.h) 2014年11月09日 Easy
27 Symmetric Tree [C++](027. Symmetric Tree/solution.h) 2014年11月10日 Easy
28 Gray Code [C++](028. Gray Code/solution.h) 2014年11月11日 Medium
29 Unique Paths [C++](029. Unique Paths/solution.h) 2014年11月12日 Medium
30 Plus One [C++](030. Plus One/solution.h) 2014年11月13日 Easy
31 Generate Parentheses [C++](031. Generate Parentheses/solution.h) 2014年11月14日 Medium
32 Pascal's Triangle [C++](032. Pascal's Triangle/solution.h) 2014年11月15日 Easy
33 Container With Most Water [C++](033. Container With Most Water/solution.h) 2014年11月16日 Medium
34 Permutations [C++](034. Permutations/solution.h) 2014年11月17日 Medium
35 Rotate Image [C++](035. Rotate Image/solution.h) 2014年11月18日 Medium
36 Search a 2D Matrix [C++](036. Search a 2D Matrix/solution.h) 2014年11月19日 Medium
37 Find Minimum in Rotated Sorted Array [C++](037. Find Minimum in Rotated Sorted Array/solution.h) 2014年11月20日 Medium
38 Minimum Path Sum [C++](038. Minimum Path Sum/solution.h) 2014年11月21日 Medium
39 Best Time to Buy and Sell Stock [C++](039. Best Time to Buy and Sell Stock/solution.h) 2014年11月22日 Medium
40 Binary Tree Level Order Traversal II [C++](040. Binary Tree Level Order Traversal II/solution.h) 2014年11月23日 Easy
41 Search in Rotated Sorted Array II [C++](041. Search in Rotated Sorted Array II/solution.h) 2014年11月24日 Medium
42 Binary Tree Postorder Traversal [C++](042. Binary Tree Postorder Traversal/solution.h) 2014年11月25日 Hard
43 Linked List Cycle II [C++](043. Linked List Cycle II/solution.h) 2014年11月26日 Medium
44 Set Matrix Zeroes [C++](044. Set Matrix Zeroes/solution.h) 2014年11月27日 Medium
45 Spiral Matrix II [C++](045. Spiral Matrix II/solution.h) 2014年11月28日 Medium
46 Remove Duplicates from Sorted Array II [C++](046. Remove Duplicates from Sorted Array II/solution.h) 2014年11月29日 Medium
47 Populating Next Right Pointers in Each Node II [C++](047. Populating Next Right Pointers in Each Node II/solution.h) 2014年11月30日 Hard
48 Binary Tree Level Order Traversal [C++](048. Binary Tree Level Order Traversal/solution.h) 2014年12月01日 Easy
49 Path Sum [C++](049. Path Sum/solution.h) 2014年12月02日 Easy
50 Pascal's Triangle II [C++](050. Pascal's Triangle II/solution.h) 2014年12月03日 Easy
51 Combinations [C++](051. Combinations/solution.h) 2014年12月04日 Medium
52 Sum Root to Leaf Numbers [C++](052. Sum Root to Leaf Numbers/solution.h) 2014年12月05日 Medium
53 Remove Nth Node from End of List [C++](053. Remove Nth Node from End of List/solution.h) 2014年12月06日 Easy
54 Minimum Depth of Binary Tree [C++](054. Minimum Depth of Binary Tree/solution.h) 2014年12月07日 Easy
55 Length of Last Word [C++](055. Length of Last Word/solution.h) 2014年12月08日 Easy
56 Trapping Rain Water [C++](056. Trapping Rain Water/solution.h) 2014年12月09日 Hard
57 Palindrome Number [C++](057. Palindrome Number/solution.h) 2014年12月10日 Easy
58 Search in Rotated Sorted Array [C++](058. Search in Rotated Sorted Array/solution.h) 2014年12月11日 Hard
59 Valid Parentheses [C++](059. Valid Parentheses/solution.h) 2014年12月12日 Easy
60 Flatten Binary Tree to Linked List [C++](060. Flatten Binary Tree to Linked List/solution.h) 2014年12月13日 Medium
61 Longest Consecutive Sequence [C++](061. Longest Consecutive Sequence/solution.h) 2014年12月14日 Hard
62 Unique Paths II [C++](062. Unique Paths II/solution.h) 2014年12月15日 Medium
63 Subsets [C++](063. Subsets/solution.h) 2014年12月16日 Medium
64 Valid Sudoku [C++](064. Valid Sudoku/solution.h) 2014年12月17日 Easy
65 Unique Binary Search Trees II [C++](065. Unique Binary Search Trees II/solution.h) 2014年12月18日 Medium
66 Convert Sorted List to Binary Search Tree [C++](066. Convert Sorted List to Binary Search Tree/solution.h) 2014年12月19日 Medium
67 Search for a Range [C++](067. Search for a Range/solution.h) 2014年12月20日 Medium
68 Jump Game [C++](068. Jump Game/solution.h) 2014年12月21日 Medium
69 Count and Say [C++](069. Count and Say/solution.h) 2014年12月22日 Easy
70 Longest Common Prefix [C++](070. Longest Common Prefix/solution.h) 2014年12月23日 Easy
71 Subsets II [C++](071. Subsets II/solution.h) 2014年12月24日 Medium
72 Partition List [C++](072. Partition List/solution.h) 2014年12月25日 Medium
73 3Sum Closest [C++](073. 3Sum Closest/solution.h) 2014年12月26日 Medium
74 Path Sum II [C++](074. Path Sum II/solution.h) 2014年12月27日 Medium
75 Combination Sum [C++](075. Combination Sum/solution.h) 2014年12月28日 Medium
76 Triangle [C++](076. Triangle/solution.h) 2014年12月29日 Medium
77 Construct Binary Tree from Inorder and Postorder Traversal [C++](077. Construct Binary Tree from Inorder and Postorder Traversal/solution.h) 2014年12月30日 Medium
78 Binary Tree Zigzag Level Order Traversal [C++](078. Binary Tree Zigzag Level Order Traversal/solution.h) 2014年12月31日 Medium
79 Construct Binary Tree from Preorder and Inorder Traversal [C++](079. Construct Binary Tree from Preorder and Inorder Traversal/solution.h) 2015年01月01日 Medium
80 Letter Combinations of a Phone Number [C++](080. Letter Combinations of a Phone Number/solution.h) 2015年01月02日 Medium
81 Reverse Linked List II [C++](081. Reverse Linked List II/solution.h) 2015年01月03日 Medium
82 Pow(x, n) [C++](082. Pow(x, n)/solution.h) 2015年01月04日 Medium
83 N-Queens [C++](083. N-Queens/solution.h) 2015年01月05日 Hard
84 Gas Station [C++](084. Gas Station/solution.h) 2015年01月06日 Medium
85 Palindrome Partitioning [C++](085. Palindrome Partitioning/solution.h) 2015年01月07日 Medium
86 Validate Binary Search Tree [C++](086. Validate Binary Search Tree/solution.h) 2015年01月08日 Medium
87 Add Binary [C++](087. Add Binary/solution.h) 2015年01月09日 Easy
88 Edit Distance [C++](088. Edit Distance/solution.h) 2015年01月10日 Hard
89 Next Permutation [C++](089. Next Permutation/solution.h) 2015年01月11日 Medium
90 Insertion Sort List [C++](090. Insertion Sort List/solution.h) 2015年01月12日 Medium
91 Reverse Nodes in k-Group [C++](091. Reverse Nodes in k-Group/solution.h) 2015年01月13日 Hard
92 Distinct Subsequences [C++](092. Distinct Subsequences/solution.h) 2015年01月14日 Hard
93 Permutations II [C++](093. Permutations II/solution.h) 2015年01月15日 Hard
94 Remove Duplicates from Sorted List II [C++](094. Remove Duplicates from Sorted List II/solution.h) 2015年01月16日 Medium
95 Jump Game II [C++](095. Jump Game II/solution.h) 2015年01月17日 Hard
96 Combination Sum II [C++](096. Combination Sum II/solution.h) 2015年01月18日 Medium
97 Anagrams [C++](097. Anagrams/solution.h) 2015年01月19日 Medium
98 Recover Binary Search Tree [C++](098. Recover Binary Search Tree/solution.h) 2015年01月20日 Hard
99 ZigZag Conversion [C++](099. ZigZag Conversion/solution.h) 2015年01月21日 Easy
100 Copy List with Random Pointer [C++](100. Copy List with Random Pointer/solution.h) 2015年01月22日 Hard
101 Clone Graph [C++](101. Clone Graph/solution.h) 2015年01月23日 Medium
102 Add Two Numbers [C++](102. Add Two Numbers/solution.h) 2015年01月24日 Medium
103 Scramble String [C++](103. Scramble String/solution.h) 2015年01月25日 Hard
104 Valid Palindrome [C++](104. Valid Palindrome/solution.h) 2015年01月26日 Easy
105 First Missing Positive [C++](105. First Missing Positive/solution.h) 2015年01月27日 Hard
106 Best Time to Buy and Sell Stock III [C++](106. Best Time to Buy and Sell Stock III/solution.h) 2015年01月28日 Hard
107 Sqrt(x) [C++](107. Sqrt(x)/solution.h) 2015年01月29日 Medium
108 Permutation Sequence [C++](108. Permutation Sequence/solution.h) 2015年01月30日 Medium
109 Longest Substring Without Repeating Characters [C++](109. Longest Substring Without Repeating Characters/solution.h) 2015年01月31日 Medium
110 Rotate List [C++](110. Rotate List/solution.h) 2015年02月01日 Medium
111 Implement strStr() [C++](111. Implement strStr()/solution.h) 2015年02月02日 Easy
112 4Sum [C++](112. 4Sum/solution.h) 2015年02月03日 Medium
113 Maximal Rectangle [C++](113. Maximal Rectangle/solution.h) 2015年02月04日 Hard
114 Largest Rectangle in Histogram [C++](114. Largest Rectangle in Histogram/solution.h) 2015年02月05日 Hard
115 Merge k Sorted Lists [C++](115. Merge k Sorted Lists/solution.h) 2015年02月06日 Hard
116 Word Break [C++](116. Word Break/solution.h) 2015年02月07日 Medium
117 Merge Intervals [C++](117. Merge Intervals/solution.h) 2015年02月08日 Hard
118 Sudoku Solver [C++](118. Sudoku Solver/solution.h) 2015年02月09日 Hard
119 Longest Palindromic Substring [C++](119. Longest Palindromic Substring/solution.h) 2015年02月10日 Medium
120 Insert Interval [C++](120. Insert Interval/solution.h) 2015年02月11日 Hard
121 Spiral Matrix [C++](121. Spiral Matrix/solution.h) 2015年02月12日 Medium
122 Sort List [C++](122. Sort List/solution.h) 2015年02月13日 Medium
123 Restore IP Addresses [C++](123. Restore IP Addresses/solution.h) 2015年02月14日 Medium
124 Multiply Strings [C++](124. Multiply Strings/solution.h) 2015年02月15日 Medium
125 Reorder List [C++](125. Reorder List/solution.h) 2015年02月16日 Medium
126 Binary Tree Maximum Path Sum [C++](126. Binary Tree Maximum Path Sum/solution.h) 2015年02月17日 Hard
127 Regular Expression Matching [C++](127. Regular Expression Matching/solution.h) 2015年02月18日 Hard
128 Simplify Path [C++](128. Simplify Path/solution.h) 2015年02月19日 Medium
129 Word Search [C++](129. Word Search/solution.h) 2015年02月20日 Medium
130 Evaluate Reverse Polish Notation [C++](130. Evaluate Reverse Polish Notation/solution.h) 2015年02月21日 Medium
131 Longest Valid Parentheses [C++](131. Longest Valid Parentheses/solution.h) 2015年02月22日 Hard
132 Interleaving String [C++](132. Interleaving String/solution.h) 2015年02月23日 Hard
133 Candy [C++](133. Candy/solution.h) 2015年02月24日 Hard
134 Find Minimum in Rotated Sorted Array II [C++](134. Find Minimum in Rotated Sorted Array II/solution.h) 2015年02月25日 Hard
135 Word Ladder [C++](135. Word Ladder/solution.h) 2015年02月26日 Medium
136 Two Sum [C++](136. Two Sum/solution.h) 2015年02月27日 Medium
137 Palindrome Partitioning II [C++](137. Palindrome Partitioning II/solution.h) 2015年02月28日 Hard
138 Minimum Window Substring [C++](138. Minimum Window Substring/solution.h) 2015年03月01日 Hard
139 Substring with Concatenation of All Words [C++](139. Substring with Concatenation of All Words/solution.h) 2015年03月02日 Hard
140 Median of Two Sorted Arrays [C++](140. Median of Two Sorted Arrays/solution.h) 2015年03月03日 Hard
141 3Sum [C++](141. 3Sum/solution.h) 2015年03月04日 Medium
142 Divide Two Integers [C++](142. Divide Two Integers/solution.h) 2015年03月05日 Medium
143 Word Break II [C++](143. Word Break II/solution.h) 2015年03月06日 Hard
144 Decode Ways [C++](144. Decode Ways/solution.h) 2015年03月07日 Medium
145 Maximum Product Subarray [C++](145. Maximum Product Subarray/solution.h) 2015年03月08日 Medium
146 String to Integer (atoi) [C++](146. String to Integer (atoi)/solution.h) 2015年03月09日 Easy
147 Wildcard Matching [C++](147. Wildcard Matching/solution.h) 2015年03月10日 Hard
148 Surrounded Regions [C++](148. Surrounded Regions/solution.h) 2015年03月11日 Medium
149 Reverse Words in a String [C++](149. Reverse Words in a String/solution.h) 2015年03月12日 Medium
150 LRU Cache [C++](150. LRU Cache/solution.h) 2015年03月13日 Hard
151 Text Justification [C++](151. Text Justification/solution.h) 2015年03月14日 Hard
152 Word Ladder II [C++](152. Word Ladder II/solution.h) 2015年03月15日 Hard
153 Valid Number [C++](153. Valid Number/solution.h) 2015年03月16日 Easy
154 Max Points on a Line [C++](154. Max Points on a Line/solution.h) 2015年03月17日 Hard

About

✏️ LeetCode solutions in C++ 11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • C++ 100.0%

AltStyle によって変換されたページ (->オリジナル) /