// TOPIC
#cycle-detection
2 articles
◆◆IntermediateGoogleAmazon
01Topological Sort
Order the nodes of a DAG so every edge points forward — the algorithm that drives build systems, package managers, course schedulers, and anything else that lives and dies by dependency ordering.
#graphs#dag#topological-sort
13 min◆◆IntermediateAmazonMeta
02Fast & Slow Pointers (Cycle Detection)
Fast and slow pointers detect linked list cycles, find the middle, and locate cycle starts in O(1) space — the most-asked linked list interview technique.
#linked-lists#two-pointers#cycle-detection
14 min