DSA · INTERVIEW & OA PREP
Trees and graphs are where medium/hard interviews live. DFS and BFS are the two hammers; most problems are a variation of traversal plus some bookkeeping. Recognising the graph hidden inside a grid or a set of dependencies is half the battle.
Ask whether the tree is a BST — it unlocks O(log n) search and ordered traversal shortcuts.
Forgetting a visited set on graphs causes infinite loops. Trees don't need one; general graphs do.
Three tap-only questions to test your recall on this topic.
Ready to apply? Browse live internships and sharpen your resume first.