Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.3 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.3 KB

leetcode-patterns

Leetcode problems categorized by patterns.

Patterns

  1. Sliding window
  2. Tow pointers
  3. Fast slow pointers
  4. Merge intervals
  5. Cyclic sort
  6. In place reversal of a linked list
  7. BFS
  8. DFS
  9. Two heaps
  10. Subsets
  11. Binary search
  12. Bitwise XOR
  13. Top K elements
  14. K-way merge
  15. Dynamic programming
  16. Topological sort
  17. 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.

Acknowledgement