Algorithm Designa67_q3b_graph_diameter

Graph Diameter

83e7a4d3-ba06-41e9-8769-6d6e1595d645.cppC++
1// Loading code...

Selected Submission

100 / 100
0.094s
2304 KB
Shortest PathDP
Time Comp.
O(n^3)
Space Comp.
O(n^2)
Readability
6/10

"The code implements the Floyd-Warshall algorithm to find the shortest paths between all pairs of nodes in a graph, and then finds the maximum shortest path. This clearly indicates a shortest path algorithm and dynamic programming approach to solve it."

History

AttemptPoints Time
Try #41005/10/2025
Try #31005/10/2025
Try #21005/10/2025
Try #11005/10/2025