← Amazon questions

Reach end cell in mountain array with obstacles

Filed under Amazon

Given a mountain array containing obstacles, determine whether a valid path exists from the start cell to the end cell, moving only according to valid mountain traversal rules.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.