Description:
https://leetcode.com/problems/shortest-unsorted-continuous-subarray/#/description
Algorithm:
Only need to care about the start index and end index
Code:
Time & Space:
O(n) & O(1)
Description:
https://leetcode.com/problems/shortest-unsorted-continuous-subarray/#/description
Algorithm:
Only need to care about the start index and end index
Code:
Time & Space:
O(n) & O(1)