← Oracle questions

Minimum length unsorted subarray

Filed under Oracle · Also reported at MakeMyTrip

Given an integer array `nums`, find the length of the shortest continuous subarray such that sorting this subarray in non-decreasing order makes the entire array sorted.

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 Oracle questions

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