awesome-leetcode
A curated list of awesome Leetcode problems, algorithms and data structures.
https://github.com/kiranpalsingh1806/awesome-leetcode
Last synced: 15 days ago
JSON representation
10. Custom Comparator
- Bitwise XOR of All Pairings - comparator.md) |
- Sort The People - comparator.md) |
- Sort Array By Parity - comparator.md) |
11. Design and Implementation
12. DFS
13. Dijkstra
- Cheapest Flights Within K Stops
- Network Delay Time
- Path With Maximum Probability
- Find The City With The Smallest Number of Neighbors At A Threshold Distance
- Path With Minimum Effort
- Number of Restricted Paths From First To Last Node
- Minimum Cost To Reach Destination In Time
- Minimum Cost To Make At Least One Valid Path In A Grid
- Reachable Nodes in Subdivided Graph
- Design Graph With Shortest Path Calculator
14. Dynamic Programming
15. Euler Circuit
- Reconstruct Itinerary - circuit.md) |
- Cracking The Safe - circuit.md) |
- Valid Arrangement of Pairs - circuit.md) |
16. Fenwick Tree
- Create Sorted Array Through Instructions - tree.md) |
- Count Good Triplets In An Array - tree.md) |
17. Greedy Scheduling
- Maximum Number of Events That Can Be Attended - dsa/blob/master/SOLUTIONS.md) |
- Single Threaded CPU - dsa/blob/master/SOLUTIONS.md) |
18. Heaps (Priority Queues)
- Sort Array By Increasing Frequency - array-by-increasing-frequency.md) |
- Kth Largest Element in An Array - largest-element-in-array.md) |
- Top K Frequent Elements - k-frequent-elements.md) |
- Sort Characters By Frequency - characters-by-frequency.md) |
- Find K Closest Elements
- Top K Frequent Words
- K Closest Points To Origin
- Reduce Array Size To The Half
- Reorganize String
- Sender With Largest Word Count
- Minimum Difference In Sums After Removal of Elements
- Course Schedule III
19. Intervals
1. Backtracking
- Generate Parentheses - dsa/blob/master/SOLUTIONS.md) |
- Combination Sum - dsa/blob/master/SOLUTIONS.md) |
- Permutations - dsa/blob/master/SOLUTIONS.md) |
- Letter Combinations of a Phone Number - dsa/blob/master/SOLUTIONS.md) |
- Sudoku Solver - dsa/blob/master/SOLUTIONS.md) |
- Combination Sum II - dsa/blob/master/SOLUTIONS.md) |
- Permutations II - dsa/blob/master/SOLUTIONS.md) |
- N Queens - dsa/blob/master/SOLUTIONS.md) |
- Combinations - dsa/blob/master/SOLUTIONS.md) |
- Word Search - dsa/blob/master/SOLUTIONS.md) |
- Palindrome Partitioning - dsa/blob/master/SOLUTIONS.md) |
- Combination Sum III - dsa/blob/master/SOLUTIONS.md) |
20. Line Sweep
- Maximum Population Year - sweep.md) |
- Divide Intervals Into Minimum Number of Groups - sweep.md) |
- Describe The Painting - sweep.md) |
- Car Pooling - sweep.md) |
- Corporate Flight Bookings - sweep.md) |
- My Calendar II - sweep.md) |
- Minimum Interval To Include Each Query - sweep.md) |
- My Calendar III - sweep.md) |
- The Skyline Problem - sweep.md) |
- Number of Flowers In Full Bloom - sweep.md) |
21. Linked List
- Merge Two Sorted Lists - list.md) |
- Palindrome Linked List - list.md) |
- Middle of The Linked List - list.md) |
- Intersection of Two Linked List - list.md) |
- Rotate List - list.md) |
- Remove Duplicates From Sorted List II - list.md) |
- Partition List - list.md) |
- Reverse Linked List II - list.md) |
- Flatten Binary Tree To Linked List - list.md) |
- Populating Next Right Pointers In Each Node - list.md) |
- Copy List With Random Pointers - list.md) |
- Delete Node In A Linked List - list.md) |
- Odd Even Linked List - list.md) |
- Swapping Nodes In A Linked List - list.md) |
- Merge Nodes In Between Zeros - list.md) |
- Reverse Nodes In K Group - list.md) |
- Merge K Sorted Lists - list.md) |
22. LIS
23. Manacher
24. Matrix
25. Merge Sort
- Count of Smaller Numbers After Self - sort.md) |
- Count of Range Sum - sort.md) |
- Reverse Pairs - sort.md) |
- Number of Pairs Satisfying Inequality - sort.md) |
26. Minimum Spanning Trees
27. Prefix State Map
- Contiguous Array - state-map.md) |
- Find The Longest Substring Containing Vowels In Even Counts - state-map.md) |
- Find Longest Awesome Substring - state-map.md) |
- Number of Wonderful Substrings - state-map.md) |
28. Queries
29. Rolling Hash
- Repeated DNA Sequences - hash/repeated-dna-sequences.md) |
- Shortest Palindrome - hash/shortest-palindrome.md) |
- Longest Duplicate Substring - hash/longest-duplicate-substring.md) |
- Distinct Echo Substrings - hash/distinct-echo-substrings.md) |
- Sum of Scores of Built Strings - dsa/blob/master/SOLUTIONS.md) |
- Find Substring With Given Hash Value - hash/find-substring-with-given-hash-value.md) |
- Longest Common Subpath - hash/longest-common-subpath.md) |
2. Base Conversion
- Find Unique Binary String - conversion.md) |
30. Segment Tree
- Shifting Letters - II - tree.md) |
- Sum of Even Numbers After Queries - tree.md) |
- Range Sum Query - Mutable - tree.md) |
- Longest Increasing Subseqence - II - tree.md) |
- Falling Squares - tree.md) |
31. Sets
32. Sieve of Eratosthenes
- Count Primes - eratosthenes.md) |
- Four Divisors - eratosthenes.md) |
33. Sliding Window
- Longest Substring Without Repeating Characters - window.md) |
- Minimum Size Subarray Sum - window.md) |
- Number of Smooth Descent Periods of Stock - window.md) |
- Maximize The Confusion of An Exam - window.md) |
- Frequency of Most Frequent Element - window.md) |
- Max Consecutive Ones - III - window.md) |
- Longest Repeating Character Replacement - window.md) |
- Permutation In String - window.md) |
- Substring With Concatenation Of All Words - window.md) |
- Count Subarrays With Fixed Count - window/count-subarrays-with-fixed-count.md) |
34. Stack
- Implement Queue Using Stacks
- Maximum Frequency Stack
- Next Greater Node In Linked List
- Valid Parentheses
- Next Greater Element I
- Backspace String Compare
- Min Stack
- Next Greater Element II
- 132 Patterns
- Daily Temperatures
- Score of Parentheses
- Validate Stack Sequences
- The Number of Weak Characters In The Game
- Construct Smallest Number From DI String
- Basic Calculator
- Longest Valid Parentheses
- Using A Robot To Print The Lexicographically Smallest String
35. Stringstream
36. Sum of First N Natural Numbers
- Count Number of Homogenous Substrings - of-first-n-natural-numbers.md) |
- Number of Substrings With Only 1s - of-first-n-natural-numbers.md) |
37. Topological Sort
- Number of Ways To Arrive At Destination - sort.md) |
- Course Schedule - sort.md) |
- Course Schedule II - sort.md) |
- Minimum Height Trees - sort.md) |
- Longest Incresing Path In A Matrix - sort.md) |
- All Ancestors of a Node In Directed Acyclic Graph - sort.md) |
- Parallel Courses III - sort.md) |
- Build A Matrix With Conditions - sort.md) |
38. Trie
- Maximum Genetic Difference Query - genetic-difference-query.md) |
- K Divisible Elements Subarray - divisible-elements-subarrays.md) |
- Implement Trie (Prefix Tree) - trie.md) |
- Search Suggestions System - suggestions-system.md) |
- Maximum XOR of Two Numbers In An Array - xor-of-two-numbers.md) |
- Concatenated Words - words.md) |
- Palindrome Pairs - pairs.md) |
- Sum of Prefix Scores of Strings - of-prefix-scores-of-strings.md) |
39. Two Dimensional Plane
- Detonate The Maximum Bombs - dsa/blob/master/SOLUTIONS.md) |