Skip to content

Latest commit

 

History

History
596 lines (591 loc) · 95.2 KB

README.md

File metadata and controls

596 lines (591 loc) · 95.2 KB

LeetCode Solutions

# Title Solution Difficulty
1964 Find the Longest Valid Obstacle Course at Each Position JavaScript Hard
1882 Process Tasks Using Servers C++ Medium
1881 Maximum Value after Insertion C++ Medium
1880 Check if Word Equals Summation of Two Words C++ Easy
1871 Jump Game VII C++ Medium
1870 Minimum Speed to Arrive on Time C++ Medium
1869 Longer Contiguous Segments of Ones than Zeros C++ Easy
1862 Sum of Floored Pairs C++ Hard
1861 Rotating the Box C++ Medium
1860 Incremental Memory Leak C++ Medium
1859 Sorting the Sentence C++ Easy
1857 Largest Color Value in a Directed Graph C++ Hard
1856 Maximum Subarray Min-Product C++ Medium
1855 Maximum Distance Between a Pair of Values C++ Medium
1854 Maximum Population Year C++ Easy
1851 Minimum Interval to Include Each Query C++ Hard
1850 Minimum Adjacent Swaps to Reach the Kth Smallest Number C++ Medium
1849 Splitting a String Into Descending Consecutive Values C++ Medium
1848 Minimum Distance to the Target Element C++ Easy
1847 Closest Room C++ Hard
1846 Maximum Element After Decreasing and Rearranging C++ Medium
1845 Seat Reservation Manager C++ Medium
1844 Replace All Digits with Characters C++ Easy
1840 Maximum Building Height C++ Hard
1839 Longest Substring Of All Vowels in Order C++ Medium
1838 Frequency of the Most Frequent Element C++ Medium
1837 Sum of Digits in Base K C++ Easy
1835 Find XOR Sum of All Pairs Bitwise AND C++ Hard
1834 Single-Threaded CPU C++ Medium
1833 Maximum Ice Cream Bars C++ Medium
1832 Check if the Sentence Is Pangram C++ Easy
1829 Maximum XOR for Each Query C++ Medium
1828 Queries on Number of Points Inside a Circle C++ Medium
1827 Minimum Operations to Make the Array Increasing C++ Easy
1825 Finding MK Average C++ Hard
1824 Minimum Sideway Jumps C++ Medium
1823 Find the Winner of the Circular Game JavaScript Medium
1822 Sign of the Product of an Array C++ Easy
1819 Number of Different Subsequences GCDs C++ Hard
1818 Minimum Absolute Sum Difference C++ Medium
1817 Finding the Users Active Minutes C++ Medium
1816 Truncate Sentence C++ Easy
1815 Maximum Number of Groups Getting Fresh Donuts C++ Hard
1814 Count Nice Pairs in an Array C++ Medium
1813 Sentence Similarity III C++ Medium
1812 Determine Color of a Chessboard Square C++ Easy
1808 Maximize Number of Nice Divisors C++ Hard
1807 Evaluate the Bracket Pairs of a String C++ Medium
1806 Minimum Number of Operations to Reinitialize a Permutation C++ Medium
1805 Number of Different Integers in a String C++ Easy
1803 Count Pairs With XOR in a Range C++ Hard
1802 Maximum Value at a Given Index in a Bounded Array C++ Medium
1801 Number of Orders in the Backlog C++ Medium
1800 Maximum Ascending Subarray Sum C++ Easy
1799 Maximize Score After N Operations C++ Hard
1798 Maximum Number of Consecutive Values You Can Make C++ Medium
1797 Design Authentication Manager C++ Medium
1796 Second Largest Digit in a String C++ Easy
1793 Maximum Score of a Good Subarray C++ Hard
1792 Maximum Average Pass Ratio C++ Medium
1791 Find Center of Star Graph C++ Medium
1790 Check if One String Swap Can Make Strings Equal C++ Easy
1787 Make the XOR of All Segments Equal to Zero C++ Hard
1786 Number of Restricted Paths From First to Last Node C++ Medium
1785 Minimum Elements to Add to Form a Given Sum C++ Medium
1784 Check if Binary String Has at Most One Segment of Ones C++ Easy
1782 Count Pairs Of Nodes C++ Hard
1781 Sum of Beauty of All Substrings C++ Medium
1780 Check if Number is a Sum of Powers of Three C++ Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate C++ Easy
1775 Equal Sum Arrays With Minimum Number of Operations C++ Medium
1774 Closest Dessert Cost C++ Medium
1773 Count Items Matching a Rule C++ Easy
1771 Maximize Palindrome Length From Subsequences C++ Hard
1770 Maximum Score from Performing Multiplication Operations C++ Medium
1769 Minimum Number of Operations to Move All Balls to Each Box C++ Medium
1768 Merge Strings Alternately C++ Easy
1766 Tree of Coprimes C++ Hard
1765 Map of Highest Peak C++ Medium
1764 Form Array by Concatenating Subarrays of Another Array C++ Medium
1763 Longest Nice Substring C++ Easy
1761 Minimum Degree of a Connected Trio in a Graph C++ Hard
1760 Minimum Limit of Balls in a Bag C++ Medium
1759 Count Number of Homogenous Substrings C++ Medium
1758 Minimum Changes To Make Alternating Binary String C++ Easy
1755 Closest Subsequence Sum C++ Hard
1754 Largest Merge Of Two Strings C++ Medium
1753 Maximum Score From Removing Stones C++ Medium
1752 Check if Array Is Sorted and Rotated C++ Easy
1751 Maximum Number of Events That Can Be Attended II C++ Hard
1750 Minimum Length of String After Deleting Similar Ends C++ Medium
1749 Maximum Absolute Sum of Any Subarray C++ Medium
1748 Sum of Unique Elements C++ Easy
1743 Restore the Array From Adjacent Pairs C++ Medium
1742 Maximum Number of Balls in a Box C++ Easy
1739 Building Boxes C++ Hard
1738 Find Kth Largest XOR Coordinate Value C++ Medium
1736 Latest Time by Replacing Hidden Digits C++ Easy
1734 Decode XORed Permutation C++ Medium
1733 Minimum Number of People to Teach C++ Medium
1732 Find the Highest Altitude C++ Easy
1727 Largest Submatrix With Rearrangements C++ Medium
1726 Tuple with Same Product C++ Medium
1725 Number Of Rectangles That Can Form The Largest Square C++ Easy
1718 Construct the Lexicographically Largest Valid Sequence C++ Medium
1717 Maximum Score From Removing Substrings C++ Medium
1716 Calculate Money in Leetcode Bank C++ Easy
1712 Ways to Split Array Into Three Subarrays C++ Medium
1711 Count Good Meals C++ Medium
1710 Maximum Units on a Truck C++ Easy
1700 Number of Students Unable to Eat Lunch C++ Easy
1695 Maximum Erasure Value C++ Medium
1694 Reformat Phone Number C++ Easy
1638 Count Substrings That Differ by One Character JavaScript Medium
1625 Lexicographically Smallest String After Applying Operations C++ Medium
1624 Largest Substring Between Two Equal Characters C++ Easy
1605 Find Valid Matrix Given Row and Column Sums C++ Medium
1573 Number of Ways to Split a String C++ Medium
1567 Maximum Length of Subarray With Positive Product JavaScript Medium
1557 Minimum Number of Vertices to Reach All Nodes JavaScript Medium
1556 Thousand Separator C++ Easy
1551 Minimum Operations to Make Array Equal C++ Medium
1550 Three Consecutive Odds C++ Easy
1541 Minimum Insertions to Balance a Parentheses String C++ Medium
1535 Find the Winner of an Array Game C++ Medium
1529 Bulb Switcher IV C++ Medium
1528 Shuffle String C++ Easy
1525 Number of Good Ways to Split a String C++ Medium
1524 Number of Sub-arrays With Odd Sum C++ Medium
1523 Count Odd Numbers in an Interval Range C++ Easy
1513 Number of Substrings With Only 1s C++ Medium
1470 Shuffle the Array C++ Easy
1464 Maximum Product of Two Elements in an Array C++ Easy
1460 Make Two Arrays Equal by Reversing Sub-arrays C++ Easy
1442 Count Triplets That Can Form Two Arrays of Equal XOR JavaScript Medium
1376 Time Needed to Inform All Employees C++ Medium
1375 Bulb Switcher III C++ Medium
1353 Maximum Number of Events That Can Be Attended C++ Medium
1333 Filter Restaurants by Vegan-Friendly, Price and Distance C++ Medium
1314 Matrix Block Sum JavaScript Medium
1249 Minimum Remove to Make Valid Parentheses JavaScript Medium
1237 Find Positive Integer Solution for a Given Equation C++ Medium
1207 Unique Number of Occurrences C++ Easy
1143 Longest Common Subsequence JavaScript Medium
1170 Compare Strings by Frequency of the Smallest Character C++ Easy
1163 Last Substring in Lexicographical Order JavaScript Easy
1137 N-th Tribonacci Number C# Easy
1091 Shortest Path in Binary Matrix JavaScript Medium
1071 Greatest Common Divisor of Strings C++ Easy
1030 Matrix Cells in Distance Order C++ Easy
1029 Two City Scheduling C++ Easy
1028 Recover a Tree From Preorder Traversal C++ Hard
1024 Video Stitching C++ Medium
1014 Best Sightseeing Pair C++ Medium
997 Find the Town Judge JavaScript Easy
994 Rotting Oranges C++ Medium
993 Cousins in Binary Tree C++ Easy
991 Broken Calculator C++ Medium
990 Satisfiability of Equality Equations C++ Medium
989 Add to Array-Form of Integer C++ Easy
988 Smallest String Starting From Leaf C++ Medium
987 Vertical Order Traversal of a Binary Tree C++ Medium
986 Interval List Intersections JavaScript Medium
985 Sum of Even Numbers After Queries C++ Easy
984 String Without AAA or BBB C++ Easy
983 Minimum Cost For Tickets C++ Medium
982 Triples with Bitwise AND Equal To Zero C++ Hard
981 Time Based Key-Value Store C++ Medium
980 Unique Paths III C++ Hard
979 Distribute Coins in Binary Tree C++ Medium
978 Longest Turbulent Subarray C++ Medium
977 Squares of a Sorted Array JavaScript Easy
976 Largest Perimeter Triangle C++ Easy
973 K Closest Points to Origin JavaScript Medium
971 Flip Binary Tree To Match Preorder Traversal Python Medium
969 Pancake Sorting Python Medium
961 N-Repeated element in size 2N Array C++ Easy
958 Check Completeness of a Binary Tree Python Medium
951 Flip Equivalent Binary Trees Python Medium
950 Reveal Cards In Increasing Order Python Medium
941 Valid Mountain Array Python Easy
933 Number of Recent Calls C++ Easy
931 Minimum Falling Path Sum C++ Medium
929 Unique Email Addresses C++ Easy
922 Sort Array By Parity II C++ Easy
918 Maximum Sum Circular Subarray C++ Medium
914 X of a Kind in a Deck of Cards Python Easy
912 Sort an Array JavaScript Medium
905 Sort Array By Parity C++ Easy
876 Middle of the Linked List JavaScript Easy
859 Buddy Strings C++ Easy
858 Mirror Reflection C++ Medium
852 Peak Index in a Mountain Array C++ Easy
849 Maximize Distance to Closest Person Python Easy
844 Backspace String Compare JavaScript Easy
841 Keys and Rooms JavaScript Medium
837 Most Common Word C++ Easy
830 Positions of Large Groups Python Easy
820 Short Encoding of Words C++ Medium
804 Unique Morse Code Words C++ Easy
797 All Paths From Source to Target JavaScript Medium
789 Escape The Ghosts Java Medium
784 Letter Case Permutation JavaScript Medium
771 Jewels and Stones C++ Easy
747 Largest Number At Least Twice of Others Python Easy
746 Min Cost Climbing Stairs JavaScript Easy
740 Delete and Earn C++ Medium
721 Accounts Merge JavaScript Medium
717 1-bit and 2-bit Characters Python Easy
714 Best Time to Buy and Sell Stock with Transaction Fee JavaScript Medium
713 Subarray Product Less Than K JavaScript Medium
712 Minimum ASCII Delete Sum for Two Strings C++ Medium
707 Design Linked List JavaScript Medium
706 Design HashMap JavaScript Easy
704 Binary Search C++ Easy
695 Max Area of Island C++ Medium
687 Longest Univalue Path Python Easy
684 Redundant Connection Python Medium
674 Longest Continuous Increasing Subsequence Python Easy
673 Number of Longest Increasing Subsequence JavaScript Medium
672 Bulb Switcher II C++ Medium
671 Second Minimum Node In a Binary Tree Python Easy
665 Non-decreasing Array Python Easy
662 Maximum Width of Binary Tree Python Medium
661 Image Smoother Python Easy
655 Print Binary Tree Python Medium
653 Two Sum IV - Input is a BST Java Easy
652 Find Duplicate Subtrees Python Medium
647 Palindromic Substrings C++ Medium
643 Maximum Average Subarray I C++ Easy
628 Maximum Product of Three Numbers Python Easy
623 Add One Row to Tree Python Medium
617 Merge Two Binary Trees C++ Easy
583 Delete Operation for Two Strings JavaScript Medium
581 Shortest Unsorted Continuous Subarray Python Easy
572 Subtree of Another Tree JavaScript Easy
567 Permutation in String C++ Medium
566 Reshape the Matrix Java Easy
563 Binary Tree Tilt Python Easy
560 Subarray Sum Equals K JavaScript Easy
557 Reverse Words in a String III C++ Easy
547 Friend Circles C++ Medium
543 Diameter of Binary Tree JavaScipt Easy
542 01 Matrix JavaScript Medium
538 Convert BST to Greater Tree Python Easy
532 K-diff Pairs in an Array Python Easy
520 Detect Capital C++ Easy
518 Coin Change 2 JavaScript Medium
516 Longest Palindromic Subsequence JavaScript Medium
509 Fibonacci Number C# Easy
497 Random Point in Non-overlapping Rectangles C++ Medium
494 Target Sum JavaScript Medium
477 Total Hamming Distance C++ Medium
463 Island Perimeter C++ Easy
459 Repeated Substring Pattern JavaScript Easy
451 Sort Characters By Frequency JavaScript Medium
450 DeleteNodeInABST JavaScript Medium
449 Serialize and Deserialize BST Python Medium
448 Find All Numbers Disappeared in an Array JavaScript Esay
438 Find all Anagrams in a string JavaScript Medium
437 Path Sum III JavaScript Medium
435 Non-overlapping Intervals JavaScript Medium
418 SentenceScreenFitting C++ Easy
416 Partition Equal Subset Sum JavaScript Medium
415 Add Strings JavaScript Easy
414 Third Maximum Number C++ Easy
413 Arithmetic Slices JavaScript Medium
412 Fizz Buzz C++ Easy
410 Split Array Largest Sum C++ Hard
409 Longest Palindrome JavaScript Easy
406 Queue Reconstruction by Height C++ Medium
405 Convert a Number to Hexadecimal C++ Easy
404 Sum of Left Leaves C++ Easy
403 Frog Jump C++ Hard
402 Remove K Digits C++ Medium
401 Binary Watch C++ Easy
400 Nth Digit C++ Medium
399 Evaluate Division C++ Medium
398 Random Pick Index C++ Medium
397 Integer Replacement C++ Medium
396 Rotate Function C++ Easy
395 Longest Substring with At Least K Repeating Characters C++ Medium
394 Decode String JavaScript Medium
393 UTF-8 Validation C++ Medium
392 Is Subsequence JavaScript Medium
391 Perfect Rectangle JavaScript Hard
390 Elimination Game C++ Medium
389 Find the Difference C++ Easy
388 Longest Absolute File Path C++ Medium
387 First Unique Character in a String JavaScript Easy
386 Lexicographical Numbers C++ Medium
385 Mini Parser C++ Medium
384 Shuffle an Array C++ Medium
383 Ransom Note JavaScript Easy
382 Linked List Random Node C++ Medium
381 Insert Delete GetRandom O(1) - Duplicates allowed C++ Hard
380 Insert Delete GetRandom O(1) C++ Hard
377 Combination Sum IV JavaScript Medium
376 Wiggle Subsequence JavaScript Medium
371 Sum of Two Integers C++ Easy
367 Valid Perfect Square C++ Easy
357 Count Numbers with Unique Digits C++ Medium
350 Intersection of Two Arrays II JavaScript Easy
349 Intersection of Two Arrays C++ Easy
347 Top K Frequent Elements JavaScript Medium
345 Reverse Vowels of a String C++ Easy
344 Reverse String Java Easy
343 Integer Break JavaScript Medium
342 Power of Four C++ Easy
341 Flatten Nested List Iterator C++ Medium
338 Counting Bits C++ Medium
337 House Robber III JavaScript Medium
336 Palindrome Pairs C++ Hard
334 Increasing Triplet Subsequence JavaScript Medium
332 Reconstruct Itinerary C++ Medium
331 Verify Preorder Serialization of a Binary Tree C++ Medium
330 Patching Array C++ Medium
329 Longest Increasing Path in a Matrix C++ Medium
328 Odd Even Linked List C++ Easy
327 Count of Range Sum C++ Hard
326 Power of Three C++ Easy
324 Wiggle Sort II C++ Medium
322 Coin Change JavaScript Medium
321 Create Maximum Number C++ Hard
319 Bulb Switcher C++ Medium
318 Maximum Product of Word Lengths C++ Medium
316 Remove Duplicate Letters C++ Hard
315 Count of Smaller Numbers After Self C++ Hard
313 Super Ugly Number C++ Medium
312 Burst Balloons C++ Hard
310 Minimum Height Trees C++ Medium
309 Best Time to Buy and Sell Stock with Cooldown JavaScript Medium
307 Range Sum Query - Mutable C++ Medium
306 Additive Number C++ Medium
304 Range Sum Query 2D - Immutable JavaScript Medium
303 Range Sum Query - Immutable C++ Easy
301 Remove Invalid Parentheses C++ Hard
300 Longest Increasing Subsequence JavaScript Medium
299 Bulls and Cows C++ Easy
297 Serialize and Deserialize Binary Tree JavaScript Medium
295 Find Median from Data Stream JavaScript Hard
292 Nim Game C++ Easy
290 Word Pattern C++ Easy
289 Game of Life C++ Medium
287 Find the Duplicate Number C++ Hard
285 Inorder Successor in BST Java Medium
284 Peeking Iterator C++ Medium
283 Move Zeroes C++ Easy
282 Expression Add Operators C++ Hard
279 Perfect Squares JavaScript Medium
278 First Bad Version C++ Easy
275 H-Index II C++ Medium
274 H-Index C++ Medium
273 Integer to English Words C++ Medium
268 Missing Number C++ Medium
264 Ugly Number II JavaScript Medium
263 Ugly Number C++ Easy
260 Single Number III C++ Medium
258 Add Digits C++ Easy
257 Binary Tree Paths C++ Easy
242 Valid Anagram JavaScript Easy
241 Different Ways to Add Parentheses C++ Medium
240 Search a 2D Matrix II JavaScript Medium
239 Sliding Window Maximum JavaScript Hard
238 Product of Array Except Self JavaScript Medium
237 Delete Node in a Linked List C++ Easy
236 Lowest Common Ancestor of a Binary Tree JavaScript Medium
235 Lowest Common Ancestor of a Binary Search Tree JavaScript Easy
234 Palindrome Linked List JavaScript Easy
233 Number of Digit One C++ Medium
232 Implement Queue using Stacks JavaScript Easy
231 Power of Two C++ Easy
230 Kth Smallest Element in a BST JavaScript Medium
229 Majority Element II C++ Medium
228 Summary Ranges C++ Easy
227 Basic Calculator II JavaScript Medium
226 Invert Binary Tree JavaScript Easy
225 Implement Stack using Queues C++ Medium
224 Basic Calculator C++ Medium
223 Rectangle Area C++ Easy
222 Count Complete Tree Nodes C++ Medium
221 Maximal Square JavaScript Medium
220 Contains Duplicate III C++ Medium
219 Contains Duplicate II C++ Easy
218 The Skyline Problem JavaScript Hard
217 Contains Duplicate JavaScript Easy
216 Combination Sum III C++ Medium
215 Kth Largest Element in an Array JavaScript Medium
214 Shortest Palindrome JavaScript Hard
213 House Robber II C++ Medium
212 Word Search II C++ Hard
211 Add and Search Word - Data structure design C++ Medium
210 Course Schedule II JavaScript Medium
209 Minimum Size Subarray Sum JavaScript Medium
208 Implement Trie (Prefix Tree) JavaScript Medium
207 Course Schedule JavaScript Medium
206 Reverse Linked List JavaScript Easy
205 Isomorphic Strings C++ Easy
204 Count Primes JavaScript Easy
203 Remove Linked List Elements JavaScript Easy
202 Happy Number C++ Easy
201 Bitwise AND of Numbers Range C++ Medium
200 Number of Islands JavaScript Medium
199 Binary Tree Right Side View JavaScript Medium
198 House Robber JavaScript Easy
191 Number of 1 Bits C++ Easy
190 Reverse Bits C++ Easy
189 Rotate Array JavaScript Easy
188 Best Time to Buy and Sell Stock IV C++ Hard
187 Repeated DNA Sequences JavaScript Medium
186 Reverse Words in a String II C++ Medium
184 Department Highest Salary SQL Medium
179 Largest Number JavaScript Medium
174 Dungeon Game C++ Hard
173 Binary Search Tree Iterator JavaScript Medium
172 Factorial Trailing Zeroes JavaScript Easy
171 Excel Sheet Column Number JavaScript Easy
170 Two Sum III - Data structure design C++ Easy
169 Majority Element JavaScript Easy
168 Excel Sheet Column Title C++ Easy
167 Two Sum II - Input array is sorted C++ Medium
166 Fraction to Recurring Decimal JavaScript Medium
165 Compare Version Numbers C++ Easy
164 Maximum Gap JavaScript Hard
163 Missing Ranges C++ Medium
162 Find Peak Element JavaScript Medium
161 [One Edit Distance](https://leetcode.com/problems/one-edit-distance/ C++ Medium
160 Intersection of Two Linked Lists JavaScript Easy
159 Longest Substring with At Most Two Distinct Characters C++ Hard
158 Read N Characters Given Read4 II - Call multiple times C++ Hard
157 Read N Characters Given Read4 C++ Easy
156 Binary Tree Upside Down C++ Medium
155 Min Stack JavaScript Easy
154 Find Minimum in Rotated Sorted Array II C++ Hard
153 Find Minimum in Rotated Sorted Array JavaScript Medium
152 Maximum Product Subarray JavaScript Medium
151 Reverse Words in a String C++ Medium
150 Evaluate Reverse Polish Notation JavaScript Medium
149 Max Points on a Line JavaScript Hard
148 Sort List JavaScript Medium
147 Insertion Sort List C++ Medium
146 LRU Cache JavaScript Hard
145 Binary Tree Postorder Traversal JavaScript Hard
144 Binary Tree Preorder Traversal JavaScript Easy
143 Reorder List JavaScript Medium
142 Linked List Cycle II JavaScript Medium
141 Linked List Cycle JavaScript Medium
140 Word Break II JavaScript Hard
139 Word Break JavaScript Medium
138 Copy List with Random Pointer JavaScript Hard
137 Single Number II C++ Medium
136 Single Number JavaScript Medium
135 Candy C++ Hard
134 Gas Station JavaScript Medium
133 Clone Graph C++ Medium
132 Palindrome Partitioning II C++ Hard
131 Palindrome Partitioning JavaScript Medium
130 Surrounded Regions JavaScript Medium
129 Sum Root to Leaf Numbers C++ Medium
128 Longest Consecutive Sequence JavaScript Hard
127 Word Ladder JavaScript Medium
126 Word Ladder II C++ Hard
125 Valid Palindrome JavaScript Easy
124 Binary Tree Maximum Path Sum JavaScript Hard
123 Best Time to Buy and Sell Stock III C++ Hard
122 Best Time to Buy and Sell Stock II JavaScript Medium
121 Best Time to Buy and Sell Stock JavaScript Medium
120 Triangle JavaScript Medium
119 Pascal's Triangle II JavaScript Easy
118 Pascal's Triangle JavaScript Easy
117 Populating Next Right Pointers in Each Node II JavaScript Hard
116 Populating Next Right Pointers in Each Node JavaScript Medium
115 Distinct Subsequences C++ Hard
114 Flatten Binary Tree to Linked List JavaScript Medium
113 Path Sum II JavaScript Medium
112 Path Sum JavaScript Easy
111 Minimum Depth of Binary Tree C++ Easy
110 Balanced Binary Tree C++ Easy
109 Convert Sorted List to Binary Search Tree JavaScript Medium
108 Convert Sorted Array to Binary Search Tree JavaScript Medium
107 Binary Tree Level Order Traversal II C++ Easy
106 Construct Binary Tree from Inorder and Postorder Traversal C++ Medium
105 Construct Binary Tree from Preorder and Inorder Traversal JavaScript Medium
104 Maximum Depth of Binary Tree JavaScript Easy
103 Binary Tree Zigzag Level Order Traversal JavaScript Medium
102 Binary Tree Level Order Traversal JavaScript Medium
101 Symmetric Tree JavaScript Easy
100 Same Tree JavaScript Easy
99 Recover Binary Search Tree JavaScript Hard
98 Validate Binary Search Tree JavaScript Medium
97 Interleaving String JavaScript Hard
96 Unique Binary Search Trees JavaScript Medium
95 Unique Binary Search Trees II JavaScript Medium
94 Binary Tree Inorder Traversal JavaScript Medium
93 Restore IP Addresses JavaScript Medium
92 Reverse Linked List II JavaScript Medium
91 Decode Ways JavaScript Medium
90 Subsets II JavaScript Medium
89 Gray Code JavaScript Medium
88 Merge Sorted Array JavaScript Easy
87 Scramble String JavaScript Hard
86 Partition List JavaScript Medium
85 Maximal Rectangle JavaScript Hard
84 Largest Rectangle in Histogram JavaScript Hard
83 Remove Duplicates from Sorted List JavaScript Easy
82 Remove Duplicates from Sorted List II JavaScript Medium
81 Search in Rotated Sorted Array II JavaScript Medium
80 Remove Duplicates from Sorted Array II JavaScript Medium
79 Word Search JavaScript Medium
78 Subsets JavaScript Medium
77 Combinations JavaScript Medium
76 Minimum Window Substring JavaScript Hard
75 Sort Colors JavaScript Medium
74 Search a 2D Matrix Java Medium
73 Set Matrix Zeroes JavaScript Medium
72 Edit Distance JavaScript Hard
71 Simplify Path JavaScript Medium
70 Climbing Stairs JavaScript Easy
69 Sqrt(x) JavaScript Medium
68 Text Justification JavaScript Hard
67 Add Binary JavaScript Easy
66 Plus One JavaScript Easy
65 Valid Number C++ Easy
64 Minimum Path Sum JavaScript Medium
63 Unique Paths II JavaScript Medium
62 Unique Paths JavaScript Medium
61 Rotate List JavaScript Medium
60 Permutation Sequence JavaScript Medium
59 Spiral Matrix II JavaScript Medium
58 Length of Last Word JavaScript Easy
57 Insert Interval JavaScript Hard
56 Merge Intervals JavaScript Hard
55 Jump Game C++ Medium
54 Spiral Matrix JavaScript Medium
53 Maximum Subarray JavaScript Medium
52 N-Queens II JavaScript Hard
51 N-Queens JavaScript Hard
50 "Pow(x, n)" JavaScript Medium
49 Group Anagrams JavaScript Medium
48 Rotate Image JavaScript Medium
47 Permutations II JavaScript Hard
46 Permutations JavaScript Medium
45 Jump Game II C++ Hard
44 Wildcard Matching JavaScript Hard
43 Multiply Strings JavaScript Medium
42 Trapping Rain Water JavaScript Hard
41 First Missing Positive JavaScript Hard
40 Combination Sum II JavaScript Medium
39 Combination Sum JavaScript Medium
38 Count and Say JavaScript Easy
37 Sudoku Solver JavaScript Hard
36 Valid Sudoku Java Easy
35 Search Insert Position JavaScript Medium
34 Search for a Range JavaScript Medium
33 Search in Rotated Sorted Array JavaScript Hard
32 Longest Valid Parentheses JavaScript Hard
31 Next Permutation JavaScript Medium
30 Substring with Concatenation of All Words JavaScript Hard
29 Divide Two Integers JavaScript Medium
28 Implement strStr() JavaScript Easy
27 Remove Element JavaScript Easy
26 Remove Duplicates from Sorted Array JavaScript Easy
25 Reverse Nodes in k-Group JavaScript Hard
24 Swap Nodes in Pairs JavaScript Medium
23 Merge k Sorted Lists JavaScript Hard
22 Generate Parentheses JavaScript Medium
21 Merge Two Sorted Lists JavaScript Easy
20 Valid Parentheses JavaScript Easy
19 Remove Nth Node From End of List JavaScript Easy
18 4Sum JavaScript Medium
17 Letter Combinations of a Phone Number JavaScript Medium
16 3Sum Closest JavaScript Medium
15 3Sum JavaScript Medium
14 Longest Common Prefix JavaScript Easy
13 Roman to Integer JavaScript Easy
12 Integer to Roman JavaScript Medium
11 Container With Most Water JavaScript Medium
10 Regular Expression Matching JavaScript Hard
9 Palindrome Number JavaScript Easy
8 String to Integer (atoi) JavaScript Easy
7 Reverse Integer JavaScript Easy
6 ZigZag Conversion JavaScript Easy
5 Longest Palindromic Substring JavaScript Medium
4 Median of Two Sorted Arrays JavaScript Hard
3 Longest Substring Without Repeating Characters JavaScript Medium
2 Add Two Numbers JavaScript Medium
1 Two Sum C++ Easy