MIT License
Here are the top Data Structures with the highest return on investment:
Here are the top algorithmic techniques with the highest return on investment:
Here are the top coding patterns with the highest return on investment:
Combining all categories from the above data, here is the list of best coding patterns/techniques with the highest ROI:
This pattern covers a huge set of questions related to Arrays and Strings, which are the highest tagged data structures. Fast & Slow Pointer can be easily understood as a variation of the Two Pointers pattern.
Sliding Window covers most of the problems related to top data structures like Arrays, Strings, and HashTables.
Most Trees and Graphs problems can be solved using Depth First Search (DFS). Matrix Traversal, which is also DFS based pattern, covers most of the matrix-related problems.
Breadth First Search (BFS) is a very handy pattern. BFS patterns like Subsets, Matrix Traversal, and Topological Sort cover a good number of problems.
Binary Search and its variants are used to solve a huge number of coding questions.
Although there are not many problems related to Interval Merge, these problems frequently appear in coding interviews.
Backtracking and recursion are used to solve a wide range of problems. Mastering these techniques is highly recommended.