Back to Questions

Shortest Unsorted Continuous Subarray (Array/Pointers)

55.8K viewsAsked 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.

Practice with This Question
Shortest Unsorted Continuous Subarray (Array/Pointers) - Interview Question