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