Please speed up to 1.5X Code link: codeforces.com... #leetcode #codeforces #codeforces #programming #cp
Пікірлер: 3
@shubhamtanwar70392 ай бұрын
great explaination
@shivamshrivastava56362 ай бұрын
Sir in case one of the values contains an odd number of elements, we have to ignore one of the elements. My intuition was to two create two cases: In the first case we will ignore the smallest element of the set and in the second case we will ignore the largest element of the set, we will take the minimum of the two cases in our answer. However, my approach is failing on some of the test cases.
@soumyabhattacharjee10512 ай бұрын
Consider the case 1 3 9 15 17 Here we have to ignore 9 which is neither max or min Please subscribe if you find this helpful