Data Structured57_q1_dense

Dense Graph

0ff99169-e1bf-4185-9b93-940b5b2254fe.cppC++
1// Loading code...

Selected Submission

100 / 100
0.016s
5480 KB
ArrayOther
Time Comp.
O(1) for most operations, O(n^2) for Transpose
Space Comp.
O(n^2)
Readability
7/10

"The code implements a graph using a 2D boolean array (adjacency matrix). The core data structure is the 2D array, and the operations revolve around manipulating this matrix to represent and query the graph's edges."

History

AttemptPoints Time
Try #810010/23/2024
Try #710010/22/2024
Try #610010/22/2024
Try #56010/22/2024
Try #45010/22/2024
Try #35010/22/2024
Try #25010/22/2024
Try #110010/22/2024