E. Beautiful Array (Codeforces Round 954 (Div. 3) )

  Рет қаралды 368

Soumya Bhattacharjee

Soumya Bhattacharjee

Күн бұрын

Please speed up to 1.5X
Code link: codeforces.com...
#leetcode #codeforces #codeforces #programming #cp

Пікірлер: 3
@shubhamtanwar7039
@shubhamtanwar7039 2 ай бұрын
great explaination
@shivamshrivastava5636
@shivamshrivastava5636 2 ай бұрын
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.
@soumyabhattacharjee1051
@soumyabhattacharjee1051 2 ай бұрын
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
F. Non-academic Problem (Codeforces Round 954 (Div. 3) )
12:46
Soumya Bhattacharjee
Рет қаралды 436
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 3 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,3 МЛН
E - Random Swaps of Balls (AtCoder Beginner Contest 360)
14:10
Soumya Bhattacharjee
Рет қаралды 145
G. Sakurako's Task (Codeforces Round 970(Div. 3) )
10:30
Soumya Bhattacharjee
Рет қаралды 90
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 847 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 804 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 85 М.
Senior Angular Developer Interview (theory)
41:57
WeCoded
Рет қаралды 19 М.