← Amazon questions

Restore Rotated Array by Reversing Subarray

Filed under Amazon

Given an array nums of distinct integers that was sorted in strictly increasing order and then rotated, determine whether it can be restored to its original sorted (ascending) order by reversing…

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.