Algorithm Designa64_q3_wildfire

Wildfire

e6ee3aae-3cfd-47c6-938f-7474e871244c.cppC++
1// Loading code...

Selected Submission

100 / 100
0.019s
2144 KB
BFS/DFSImplementation
Time Comp.
O(D * (V + E))
Space Comp.
O(V + E)
Readability
5/10

"The code simulates the spread of fire through a graph, decrementing the total value based on infected nodes. The core logic revolves around a depth-first search (DFS) to propagate the fire, making BFS/DFS the primary algorithmic concept."

History

AttemptPoints Time
Try #11003/24/2025