Problem 581 · Easy

Shortest Unsorted Continuous Subarray

Find the shortest continuous subarray that needs to be sorted

Open the interactive visualisation