| 2. Add Two Numbers |
Problem |
Solution |
| 3. Longest Substring Without Repeating Characters |
Problem |
Solution |
| 7. Reverse Integer |
Problem |
Solution |
| 8. String to Integer (atoi) |
Problem |
Solution |
| 11. Container With Most Water |
Problem |
Solution |
| 15. 3Sum |
Problem |
Solution |
| 16. 3Sum Closest |
Problem |
Solution |
| 18. 4Sum |
Problem |
Solution |
| 19. Remove Nth Node From End of List |
Problem |
Solution |
| 22. Generate Parentheses |
Problem |
Solution |
| 33. Search in Rotated Sorted Array |
Problem |
Solution |
| 34. Find First and Last Position of Element in Sorted Array |
Problem |
Solution |
| 36. Valid Sudoku |
Problem |
Solution |
| 39. Combination Sum |
Problem |
Solution |
| 40. Combination Sum II |
Problem |
Solution |
| 46. Permutations |
Problem |
Solution |
| 47. Permutations II |
Problem |
Solution |
| 48. Rotate Image |
Problem |
Solution |
| 49. Group Anagrams |
Problem |
Solution |
| 50. Pow(x, n) |
Problem |
Solution |
| 56. Merge Intervals |
Problem |
Solution |
| 57. Insert Interval |
Problem |
Solution |
| 62. Unique Paths |
Problem |
Solution |
| 74. Search a 2D Matrix |
Problem |
Solution |
| 75. Sort Colors |
Problem |
Solution |
| 77. Combinations |
Problem |
Solution |
| 78. Subsets |
Problem |
Solution |
| 79. Word Search |
Problem |
Solution |
| 80. Remove Duplicates from Sorted Array II |
Problem |
Solution |
| 90. Subsets II |
Problem |
Solution |
| 91. Decode Ways |
Problem |
Solution |
| 92. Reverse Linked List II |
Problem |
Solution |
| 98. Validate Binary Search Tree |
Problem |
Solution |
| 102. Binary Tree Level Order Traversal |
Problem |
Solution |
| 103. Binary Tree Zigzag Level Order Traversal |
Problem |
Solution |
| 128. Longest Consecutive Sequence |
Problem |
Solution |
| 137. Single Number II |
Problem |
Solution |
| 142. Linked List Cycle II |
Problem |
Solution |
| 143. Reorder List |
Problem |
Solution |
| 146. LRU Cache |
Problem |
Solution |
| 150. Evaluate Reverse Polish Notation |
Problem |
Solution |
| 151. Reverse Words in a String |
Problem |
Solution |
| 152. Maximum Product Subarray |
Problem |
Solution |
| 153. Find Minimum in Rotated Sorted Array |
Problem |
Solution |
| 155. Min Stack |
Problem |
Solution |
| 162. Find Peak Element |
Problem |
Solution |
| 165. Compare Version Numbers |
Problem |
Solution |
| 167. Two Sum II - Input Array Is Sorted |
Problem |
Solution |
| 189. Rotate Array |
Problem |
Solution |
| 198. House Robber |
Problem |
Solution |
| 199. Binary Tree Right Side View |
Problem |
Solution |
| 201. Bitwise AND of Numbers Range |
Problem |
Solution |
| 208. Implement Trie (Prefix Tree) |
Problem |
Solution |
| 209. Minimum Size Subarray Sum |
Problem |
Solution |
| 211. Design Add and Search Words Data Structure |
Problem |
Solution |
| 215. Kth Largest Element in an Array |
Problem |
Solution |
| 227. Basic Calculator II |
Problem |
Solution |
| 230. Kth Smallest Element in a BST |
Problem |
Solution |
| 235. Lowest Common Ancestor of a Binary Search Tree |
Problem |
Solution |
| 238. Product of Array Except Self |
Problem |
Solution |
| 275. H-Index II |
Problem |
Solution |
| 287. Find the Duplicate Number |
Problem |
Solution |
| 300. Longest Increasing Subsequence |
Problem |
Solution |
| 328. Odd Even Linked List |
Problem |
Solution |
| 347. Top K Frequent Elements |
Problem |
Solution |
| 355. Design Twitter |
Problem |
Solution |
| 367. Valid Perfect Square |
Problem |
Solution |
| 380. Insert Delete GetRandom O(1) |
Problem |
Solution |
| 397. Integer Replacement |
Problem |
Solution |
| 398. Random Pick Index |
Problem |
Solution |
| 402. Remove K Digits |
Problem |
Solution |
| 414. Third Maximum Number |
Problem |
Solution |
| 424. Longest Repeating Character Replacement |
Problem |
Solution |
| 435. Non-overlapping Intervals |
Problem |
Solution |
| 442. Find All Duplicates in an Array |
Problem |
Solution |
| 450. Delete Node in a BST |
Problem |
Solution |
| 451. Sort Characters By Frequency |
Problem |
Solution |
| 473. Matchsticks to Square |
Problem |
Solution |
| 475. Heaters |
Problem |
Solution |
| 503. Next Greater Element II |
Problem |
Solution |
| 523. Continuous Subarray Sum |
Problem |
Solution |
| 528. Random Pick with Weight |
Problem |
Solution |
| 560. Subarray Sum Equals K |
Problem |
Solution |
| 567. Permutation in String |
Problem |
Solution |
| 611. Valid Triangle Number |
Problem |
Solution |
| 621. Task Scheduler |
Problem |
Solution |
| 622. Design Circular Queue |
Problem |
Solution |
| 633. Sum of Square Numbers |
Problem |
Solution |
| 658. Find K Closest Elements |
Problem |
Solution |
| 665. Non-decreasing Array |
Problem |
Solution |
| 692. Top K Frequent Words |
Problem |
Solution |
| 707. Design Linked List |
Problem |
Solution |
| 713. Subarray Product Less Than K |
Problem |
Solution |
| 739. Daily Temperatures |
Problem |
Solution |
| 791. Custom Sort String |
Problem |
Solution |
| 853. Car Fleet |
Problem |
Solution |
| 875. Koko Eating Bananas |
Problem |
Solution |
| 876. Middle of the Linked List |
Problem |
Solution |
| 901. Online Stock Span |
Problem |
Solution |
| 904. Fruit Into Baskets |
Problem |
Solution |
| 912. Sort an Array |
Problem |
Solution |
| 923. 3Sum With Multiplicity |
Problem |
Solution |
| 930. Binary Subarrays With Sum |
Problem |
Solution |
| 950. Reveal Cards In Increasing Order |
Problem |
Solution |
| 973. K Closest Points to Origin |
Problem |
Solution |
| 981. Time Based Key-Value Store |
Problem |
Solution |
| 1004. Max Consecutive Ones III |
Problem |
Solution |
| 1011. Capacity To Ship Packages Within D Days |
Problem |
Solution |
| 1338. Reduce Array Size to The Half |
Problem |
Solution |
| 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold |
Problem |
Solution |
| 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
Problem |
Solution |
| 1448. Count Good Nodes in Binary Tree |
Problem |
Solution |
| 1472. Design Browser History |
Problem |
Solution |
| 1493. Longest Subarray of 1's After Deleting One Element |
Problem |
Solution |
| 1574. Shortest Subarray to be Removed to Make Array Sorted |
Problem |
Solution |
| 1642. Furthest Building You Can Reach |
Problem |
Solution |
| 1657. Determine if Two Strings Are Close |
Problem |
Solution |
| 1695. Maximum Erasure Value |
Problem |
Solution |
| 1856. Maximum Subarray Min-Product |
Problem |
Solution |
| 2095. Delete the Middle Node of a Linked List |
Problem |
Solution |
| 2300. Successful Pairs of Spells and Potions |
Problem |
Solution |
| 2336. Smallest Number in Infinite Set |
Problem |
Solution |
| 2405. Optimal Partition of String |
Problem |
Solution |
| 2410. Maximum Matching of Players With Trainers |
Problem |
Solution |
| 2424. Longest Uploaded Prefix |
Problem |
Solution |
| 2461. Maximum Sum of Distinct Subarrays With Length K |
Problem |
Solution |
| 2462. Total Cost to Hire K Workers |
Problem |
Solution |
| 2542. Maximum Subsequence Score |
Problem |
Solution |
| 3092. Most Frequent IDs |
Problem |
Solution |