Back to QuestionsPractice with This Question
Shortest Unsorted Continuous Subarray (Array/Pointers)
55.8K views•Asked at Google•
Medium
Question Explain
Given an integer array, you need to find one continuous subarray that, if you only sort this subarray, the whole array will be sorted. Find its length.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.