B. M-arrays | Codeforces Round 708 | MATHS | CODEFORCES | CODE EXPLAINER

  Рет қаралды 4,012

code Explainer

code Explainer

Күн бұрын

Пікірлер: 29
@kunalsingh6961
@kunalsingh6961 2 жыл бұрын
Awesome explanation 🙌
@prasadpatil9105
@prasadpatil9105 Жыл бұрын
This is the best explaination i have ever seen
@codeExplainer
@codeExplainer Жыл бұрын
welcome. Keep coding and keep learning.
@saurabh.gupta22
@saurabh.gupta22 6 ай бұрын
best Explanation👏
@codeExplainer
@codeExplainer 6 ай бұрын
Glad you liked it
@GauravDuseja-t6q
@GauravDuseja-t6q 6 ай бұрын
Nice explanation
@codeExplainer
@codeExplainer 6 ай бұрын
Keep watching
@bhargavannem3960
@bhargavannem3960 3 жыл бұрын
I watched a lot of other videos on this and your explanation is the clearest and helped me a lot. Thank you so much!
@valeesi
@valeesi 3 жыл бұрын
Completely agree. Very well explained. Thank you!
@codeExplainer
@codeExplainer 3 жыл бұрын
Great to hear! . Keep supporting and keep learning.
@shreyasingh1258
@shreyasingh1258 3 жыл бұрын
@@codeExplainer trulyy! you have a way with explaining things and simplifying them! helping us a lot
@akashjain4281
@akashjain4281 3 жыл бұрын
Precise explanation!✌
@codeExplainer
@codeExplainer 3 жыл бұрын
Glad it was helpful!
@prateeksomani5803
@prateeksomani5803 3 жыл бұрын
Why we are choosing counterpart of x as m-x. For example if x = 13 and m=5 then m-x = -8 but 13%5 = 3 so we need 2 but m-c gives -7 . So it should be m-(x%m) or m-x is correct ?? Please tell if I'm wrong
@NNELATURIASHOKKUMAR
@NNELATURIASHOKKUMAR 3 жыл бұрын
Nice explanation sir waiting for upcoming contests videos too.
@codeExplainer
@codeExplainer 3 жыл бұрын
sure, more videos are coming soon.
@nidhishprasad2506
@nidhishprasad2506 3 жыл бұрын
Why we are not checking m-i.first
@AnkitKumar-sz5wu
@AnkitKumar-sz5wu 3 жыл бұрын
If we do so then we would calculate the same values twice. Let m = 8 , i.first = 2 then we would do the calculation once for (m - i.first) = 6 but if we calculate for (m - i.first < i.first) then we would do the same calculation when i.first = 6 since then (m - i.first) would become 2. This happens because he is updating the value of references a and b but not the actual values in the map.
@nidhishprasad2506
@nidhishprasad2506 3 жыл бұрын
@@AnkitKumar-sz5wu Thanks for clarifying.
@UMEMrinalAnand
@UMEMrinalAnand 3 жыл бұрын
1491 C pekora and trampoline
@sohanursohan2426
@sohanursohan2426 3 жыл бұрын
would u please provide the solution of E1 of these contest.
@Anonymous-pj2mv
@Anonymous-pj2mv 3 жыл бұрын
Is there any use of second condition
@codeExplainer
@codeExplainer 3 жыл бұрын
ya maybe it is not required, u are right.. thanks
@Anonymous-pj2mv
@Anonymous-pj2mv 3 жыл бұрын
@@codeExplainer thx bro for confirmation :}
@satyamsrivastava9034
@satyamsrivastava9034 3 жыл бұрын
your code is only self explainatory...
@codeExplainer
@codeExplainer 3 жыл бұрын
thanks brother..
@harshgupta3301
@harshgupta3301 3 жыл бұрын
bhaiya ek doubt hai ki a=a-(b+1)kaise likha aapne ?? ,usme thoda confusion hai :(
@codeExplainer
@codeExplainer 3 жыл бұрын
a=a-(b+1) ka reason hai , i have first check which is bigger a or b , and if found out a is bigger , which means occurrence of a is large , and thus we can form an array with alternative a and b, and because a is larger we can put the numbers like abababa.. and so on , so in that array which we will form by alternative a and b, so for lets assume we have 3 b's we can put abababa , and thus we have used b+1 a's , and thus this number of a's are used in the original array , and the rest of a's which are left , have to be inserted in separate array , and thus how much a's are left a=a-(b+1) , i hope this helps.
@harshgupta3301
@harshgupta3301 3 жыл бұрын
@@codeExplainer ohhh ,bilkul clear ho gaya ab , thanks a lot bhaiya :)
A. Strange Table | Codeforces Round #710 (Div. 3) | CODEFORCES
8:31
code Explainer
Рет қаралды 2,9 М.
B. Flip the Bits | Codeforces Round #712 | GREEDY | CODE EXPLAINER
14:04
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 7 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 16 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 117 МЛН
B. Jumps | Educational Codeforces Round 99 | CODEFORCES
13:43
code Explainer
Рет қаралды 3,9 М.
Lambda Calculus - Computerphile
12:40
Computerphile
Рет қаралды 1 МЛН
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 399 М.
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2 МЛН
yes, !! is also a math symbol
16:06
Wrath of Math
Рет қаралды 22 М.
Malware Development: Processes, Threads, and Handles
31:29
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 7 МЛН