25 coding patterns commonly asked in interviews:

1. Two pointers

2. Fast and Slow Pointers

3. Sliding window

4. Divide and Conquer

5. In-place reversal of a Linked List

6. Modified Binary Search

7. Cyclic Sort

8. Matrix Traversal

9. Merge Intervals

10. Two Heaps

11. Top k Elements

12. K-way Merge

13. Breadth First Search

14. Depth First Search

15. Topological Sort

16. Subsets

17. Bitwise XOR

18. Trie

19. Backtracking

20. Monotonic Stack

21. Fibonacci Numbers

22. 0/1 Knapsack

23. Palindromic Subsequence

24. Longest Common Substring

25. Memoization

Source: x.com/swapnakpanda/status/1849415886370652483

Reply to this note

Please Login to reply.

Discussion

No replies yet.