Most Know Algorithms - Two Pointers - Sliding Window - Binary Search - Prefix Sum / Difference Array - Greedy - Backtracking - Bitmasking - Union-Find (DSU) - Monotonic Stack /Queue - Topological Sort - Dynamic Programming - Divide and Conquer - Meet in the Middle - Trie

theskilledcoder's tweet image. Most Know Algorithms

- Two Pointers
- Sliding Window
- Binary Search
- Prefix Sum / Difference Array
- Greedy
- Backtracking
- Bitmasking
- Union-Find (DSU)
- Monotonic Stack /Queue
- Topological Sort
- Dynamic Programming
- Divide and Conquer
- Meet in the Middle
- Trie

Mastering these unlocks a world of problem-solving possibilities. Consider exploring graph algorithms too for a well-rounded skillset.


Nice list! I would add Segment Trees and maybe some graph algorithms like Dijkstra, but this is a solid foundation.


United States Trends
Loading...

Something went wrong.


Something went wrong.