Algorithm Designex05e2_planning

Task Planning

7e7dddf6-7cd7-4b6a-bf12-b10504af422f.cppC++
1// Loading code...

Selected Submission

100 / 100
0.01s
2780 KB
Topo SortBFS/DFS
Time Comp.
O(V + E)
Space Comp.
O(V + E)
Readability
7/10

"The code performs a topological sort on a directed acyclic graph. It calculates in-degrees, uses a queue to process nodes with zero in-degree, and iteratively removes edges to find a valid topological order."

History

AttemptPoints Time
Try #21003/25/2025
Try #11003/25/2025