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
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #2 | 100 | 3/25/2025 |
| Try #1 | 100 | 3/25/2025 |