Topological sort of a directed graph

0
Remix

Return an order of a directed graph's nodes in which every edge goes from earlier to later, or report a cycle. Give Kahn's algorithm and the DFS version. Only the title of this report was public.

MicrosoftTechnical phone screenLast asked Jan 2026
No answer yet. Write the first one; the best answer gets endorsed.