Algorithm Designda66_f1_sea_bridge

Sea Bridge

fb84da90-5a72-45c0-8ea0-6c63024404ab.cppC++
1// Loading code...

Selected Submission

100 / 100
0.226s
23736 KB
BFS/DFSImplementation
Time Comp.
O(R * C)
Space Comp.
O(R * C)
Readability
5/10

"The code performs a breadth-first search (BFS) to find the minimum number of steps to reach a cell with value 2, starting from cells with value 1. It explores the grid level by level, simulating a spreading process."

History

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