Leetcode problems categorized by patterns.
- Sliding window
- Tow pointers
- Fast slow pointers
- Merge intervals
- Cyclic sort
- In place reversal of a linked list
- BFS
- DFS
- Two heaps
- Subsets
- Binary search
- Bitwise XOR
- Top K elements
- K-way merge
- Dynamic programming
- Topological sort
- Divide and conquer
If a file has a non-zero prefix file name, that means the problem can be found on Leetcode, there should be a link in the comment to link to Leetcode. If the problems can be found on Leetcode, then the solution inside is already validated against Leetcode (expect the ones require subscription). Files prefixed by 0 can not be found on Leetcode.
- Grokking the Coding Interview from Educative.io.
- labuladong 的算法小抄 (Chinese language)