Algorithm Designa62_q1a_recur
Recursive Matrix
9bd15099-0c15-4f9d-bfd1-2cd952a20ad8.cppC++
1// Loading code...Selected Submission
100 / 100
0.005s
1720 KB
RecursionImplementation
Time Comp.
O(4^n)
Space Comp.
O(2^n * 2^n)
Readability
5/10
"The code uses a recursive function to populate a 2D grid with values based on a given radius and starting values. The core logic revolves around dividing the grid into quadrants and recursively filling them, demonstrating a divide-and-conquer approach."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #6 | 100 | 2/3/2025 |
| Try #5 | 0 | 2/3/2025 |
| Try #4 | 100 | 2/3/2025 |
| Try #3 | 10 | 2/3/2025 |
| Try #2 | 0 | 2/3/2025 |
| Try #1 | 90 | 2/3/2025 |