← Intuit questions
CodingReported in a candidate post, Feb 2023

Topological Sorting in a Directed Graph

Filed under Intuit

Given a Directed Acyclic Graph (DAG), find a topological ordering of its vertices such that for every directed edge u -> v, vertex u comes before v in the ordering.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Intuit questions

Collected from public candidate posts and coding forums. Updated Nov 2026.