Interview CheatSheet
Interview CheatSheet
Author : vee_daily19
This cheatsheet will be useful to anyone who wants a quick 2 minute review before an interview
to ensure they can identify solutions quickly. I must add that it is collected from many sources
and credit is due. Adding them at the bottom
● DFS (Depth-First Search): Deep exploration, good for paths, connectivity checks.
● BFS (Breadth-First Search): Level-wise exploration, ideal for shortest path, level-order
traversal.
● Iterative Stack: Replace recursion explicitly with stacks for DFS and backtracking.
Credits :
Zeromastery.io
Tech blog
Data structures