LeetCode fuss π
Problem | Solution | Topics | Difficulty |
---|---|---|---|
1. Two Sum | π | Array Hash Table |
|
2. Add Two Numbers | π€ | Linked List Math Recursion |
|
3. Longest Substring Without Repeating Characters | π€ | Hash Table String Sliding Window |
|
5. Longest Palindromic Substring | π€ | Two Pointers String Dynamic Programming |
|
17. Letter Combinations of a Phone Number | π€ | Hash Table String Backtracking |
|
19. Remove Nth Node From End of List | π€ | Linked List Two Pointers |
|
20. Valid Parentheses | π | String Stack |
|
21. Merge Two Sorted Lists | π | Linked List Recursion |
|
22. Generate Parentheses | π€ | String Dynamic Programming Backtracking |
|
23. Merge k Sorted Lists | π€ | Linked List Divide and Conquer Heap (Priority Queue) Merge Sort |
|
24. Swap Nodes in Pairs | π€ | Linked List Recursion |
|
26. Remove Duplicates from Sorted Array | π | Array Two Pointers |
|
33. Search in Rotated Sorted Array | π€ | Array Binary Search |
|
48. Rotate Image | π€ | Array Math Matrix |
|
49. Group Anagrams | π€ | Array Hash Table String Sorting |
|
56. Merge Intervals | π€ | Array Sorting |
|
71. Simplify Path | π€ | String Stack |
|
88. Merge Sorted Array | π | Array Two Pointers Sorting |
|
98. Validate Binary Search Tree | π€ | Tree Depth-First Search Binary Search Tree Binary Tree |
|
101. Symmetric Tree | π | Tree Depth-First Search Breadth-First Search Binary Tree |
|
103. Binary Tree Zigzag Level Order Traversal | π€ | Tree Breadth-First Search Binary Tree |
|
125. Valid Palindrome | π | Two Pointers String |
|
136. Single Number | π | Array Bit Manipulation |
|
146. LRU Cache | π€ | Hash Table Linked List Design Doubly-Linked List |
|
150. Evaluate Reverse Polish Notation | π€ | Array Math Stack |
|
153. Find Minimum in Rotated Sorted Array | π€ | Array Binary Search |
|
159. Longest Substring with At Most Two Distinct Characters | π€ | Hash Table String Sliding Window |
|
161. One Edit Distance | π€ | Two Pointers String |
|
167. Two Sum II - Input Array Is Sorted | π€ | Array Two Pointers Binary Search |
|
200. Number of Islands | π€ | Array Depth-First Search Breadth-First Search Union Find Matrix |
|
204. Count Primes | π€ | Array Math Enumeration Number Theory |
|
206. Reverse Linked List | π | Linked List Recursion |
|
228. Summary Ranges | π | Array |
|
232. Implement Queue using Stacks | π | Stack Design Queue |
|
234. Palindrome Linked List | π | Linked List Two Pointers Stack Recursion |
|
236. Lowest Common Ancestor of a Binary Tree | π€ | Tree Depth-First Search Binary Tree |
|
238. Product of Array Except Self | π€ | Array Prefix Sum |
|
253. Meeting Rooms II | π€ | Greedy Array Two Pointers Prefix Sum Sorting Heap (Priority Queue) |
|
268. Missing Number | π | Array Hash Table Math Binary Search Bit Manipulation Sorting |
|
279. Perfect Squares | π€ | Math Dynamic Programming Breadth-First Search |
|
281. Zigzag Iterator | π€ | Design Queue Array Iterator |
|
283. Move Zeroes | π | Array Two Pointers |
|
300. Longest Increasing Subsequence | π€ | Array Binary Search Dynamic Programming |
|
341. Flatten Nested List Iterator | π€ | Stack Tree Depth-First Search Design Queue Iterator |
|
350. Intersection of Two Arrays II | π | Array Hash Table Two Pointers Binary Search Sorting |
|
356. Line Reflection | π€ | Array Hash Table Math |
|
362. Design Hit Counter | π€ | Design Queue Array Binary Search |
|
380. Insert Delete GetRandom O(1) | π€ | Array Hash Table Math Design Randomized |
|
387. First Unique Character in a String | π | Hash Table String Queue Counting |
|
392. Is Subsequence | π | Two Pointers String Dynamic Programming |
|
415. Add Strings | π | Math String Simulation |
|
438. Find All Anagrams in a String | π€ | Hash Table String Sliding Window |
|
443. String Compression | π€ | Two Pointers String |
|
448. Find All Numbers Disappeared in an Array | π | Array Hash Table |
|
470. Implement Rand10() Using Rand7() | π€ | Math Rejection Sampling Randomized Probability and Statistics |
|
487. Max Consecutive Ones II | π€ | Array Dynamic Programming Sliding Window |
|
523. Continuous Subarray Sum | π€ | Array Hash Table Math Prefix Sum |
|
557. Reverse Words in a String III | π | Two Pointers String |
|
560. Subarray Sum Equals K | π€ | Array Hash Table Prefix Sum |
|
567. Permutation in String | π€ | Hash Table Two Pointers String Sliding Window |
|
658. Find K Closest Elements | π€ | Array Two Pointers Binary Search Sliding Window Sorting Heap (Priority Queue) |
|
716. Max Stack | π | Stack Design Linked List Doubly-Linked List Ordered Set |
|
763. Partition Labels | π€ | Hash Table Two Pointers String Greedy |
|
771. Jewels and Stones | π | Hash Table String |
|
849. Maximize Distance to Closest Person | π€ | Array |
|
933. Number of Recent Calls | π | Design Queue Data Stream |
|
938. Range Sum of BST | π | Tree Depth-First Search Binary Search Tree Binary Tree |
|
977. Squares of a Sorted Array | π | Array Two Pointers Sorting |
|
986. Interval List Intersections | π€ | Array Two Pointers Line Sweep |
|
1004. Max Consecutive Ones III | π€ | Array Binary Search Sliding Window Prefix Sum |
|
1446. Consecutive Characters | π | String |
|
1493. Longest Subarray of 1's After Deleting One Element | π€ | Array Dynamic Programming Sliding Window |
|
1650. Lowest Common Ancestor of a Binary Tree III | π€ | Tree Hash Table Two Pointers Binary Tree |
Using PostgreSQL
Problem | Solution | Topics |
---|---|---|
SQL Tasks | π’οΈ | Database |