Practice›LeetCode›LeetCode 05xxLeetCode 581: Shortest Unsorted Continuous SubarrayA clear linear-time solution for finding the shortest subarray that must be sorted to make the whole array sorted.