Skip to content

yqtaowhu/programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Algorithm

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

##Licence

Copyright 2016 yqtao

About

LeetCode problems solutions using c++ with much comment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published