In this post we will try to come up with a logical and intuitive solution for the question https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ Problem Statement Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted…