you give 0indexed array distinct integer numsthere element num low value element high value we minimum maximum respectively your goal remove element arrayA deletion define remove element array remove element arrayreturn minimum number deletion remove minimum maximum element array Example 1input num 210754186output 5explanation the minimum element array nums5 1the maximum element array nums1 10we remove minimum maximum remove 2 element 3 element backthis result 2 3 5 deletion minimum number possibleexample 2input num 041918235output 3explanation the minimum element array nums1 4the maximum element array nums2 19we remove minimum maximum remove 3 element frontthis result 3 deletion minimum number possibleexample 3input num 101output 1explanation there element array make minimum maximum elementwe remove 1 deletion Constraints1 numslength 105105 numsi 105the integer num distinct