E. Beautiful Array | Codeforces Round 954 (Div. 3) Solution | Ajit Kushwaha |

  Рет қаралды 102

Ajit Kushwaha

Ajit Kushwaha

Күн бұрын

So hi in this video i have discussed the problem of Codeforces Round 954 (Div. 3) it is a problem from the contest
E. Beautiful Array Solution
do watch it out :)
#codeforces
#coding
#codeforcessolutions
#codeforcessolution
#codeforces
#codeforcescontest
#codforcesdiv3
#codeforcescontest
#codeforcesround954

Пікірлер: 5
@mithileshmahto1088
@mithileshmahto1088 2 ай бұрын
Good explanation Sir👍
@ajitkushwaha3101
@ajitkushwaha3101 2 ай бұрын
Acha sir 😏...
@roshangeorge97
@roshangeorge97 2 ай бұрын
isnt it similar to if to make a, b equal then we need to take the diff: (a-b) and use this to do like a/(a-b) = b/(a-b) like this we can form a palindrome?
@ajitkushwaha3101
@ajitkushwaha3101 2 ай бұрын
I can't understand like what exactly you are trying say but see to make a = b . We can only do this when If(a%k == b%k) then (a-b) will always be divisible with k . And if difference is divisible by k so we just need to add this difference to min(a,b) Now difference/k will be no. Of operations to make them equal that's it.
@ajitkushwaha3101
@ajitkushwaha3101 2 ай бұрын
Also one more thing to make a = b I can only do a += k*times. Considering (a
Codeforces Round 816 Div 2 | Problem B : Beautiful Array Solution | InHindi | Explanation + Code
12:41
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 99 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 41 МЛН
Full python list in one shot
28:00
Yash Agarwal
Рет қаралды 4
Codeforces Round #954 (Div. 3) - E. Beautiful Array - Video Solution
7:54
Ep : 5 I Jain Philosophy: An Introduction I Dr Vikas Divyakirti
3:29:27
Vikas Divyakirti
Рет қаралды 8 МЛН
HOW I BECAME RED ON CODEFORCES | Explained in 15 seconds
0:16
Utkarsh Gupta
Рет қаралды 237 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 99 МЛН