Algorithm Designex04h1_montblanc

Mont Blanc

3fc80d97-eea1-41f4-973f-6b5e746dd982.pyPython
1// Loading code...

Selected Submission

100 / 100
0.028s
19244 KB
Binary SearchImplementation
Time Comp.
O(N log M)
Space Comp.
O(N)
Readability
6/10

"The code uses binary search to find the minimum step length that allows reaching the end of the mountain range, and a recursive function `reachedEnd` to simulate the traversal. The `bisect` module is used for efficient searching within the `heights` list, indicating a search-related algorithm."

History

AttemptPoints Time
Try #371004/13/2025
Try #361004/12/2025
Try #351004/12/2025
Try #341004/12/2025
Try #331004/12/2025
Try #321004/12/2025
Try #311004/12/2025
Try #301004/12/2025
Try #291004/12/2025
Try #2804/12/2025
Try #27204/12/2025
Try #261004/12/2025
Try #251004/12/2025
Try #24904/12/2025
Try #23904/12/2025
Try #221004/12/2025
Try #211004/12/2025
Try #201004/12/2025
Try #191004/12/2025
Try #181004/12/2025
Try #171004/11/2025
Try #16904/11/2025
Try #151004/11/2025
Try #141004/11/2025
Try #131004/11/2025
Try #121004/11/2025
Try #11904/11/2025
Try #101004/11/2025
Try #91004/11/2025
Try #8704/11/2025
Try #7404/11/2025
Try #6704/11/2025
Try #5704/11/2025
Try #404/11/2025
Try #304/11/2025
Try #2304/11/2025
Try #1304/11/2025