Helping The Nature || Codeforces Round 802 Div2 Problem C

  Рет қаралды 2,953

Competitive Coding - Newton School

Competitive Coding - Newton School

Күн бұрын

Пікірлер: 31
@almamun.
@almamun. 4 ай бұрын
It's really easy explanation,thanks brother ❤
@thamidurandilbandara415
@thamidurandilbandara415 2 жыл бұрын
The proof: at the end the operations for of each index i ( 1 0 now in this case the only way to make the difference 0 is to apply suffix on arr[i] because further decreasing arr[i - 1] is stupid case ii:arr[i] - arr[i-1] < 0 in this case the only way to make the differece 0 to apply prefix arr[i-1] because further decreasing arr[i] is stupid because of this we always get the best possible answer
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Nice
@shahinsiddiquei4513
@shahinsiddiquei4513 2 жыл бұрын
Great Explanation!!!!!
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Thanks Shahin
@Karthik-ox6jv
@Karthik-ox6jv 2 жыл бұрын
Very nice, best explanation 👍 . The main thing is to understand why we are trying to make everything equal which is clear after watching the video. As you mentioned, it doesn't matter in what order we perform the operations. The method which we follow to get same elements justifies that every move is a must. I still can't prove it but I feel that what we are doing is the best way to do it.
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Nicely summarised :)
@arijitdey8419
@arijitdey8419 2 жыл бұрын
very good explanation..keep up the good work and thanks a lot
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Thanks Arijit
@rudranilacharya5293
@rudranilacharya5293 2 жыл бұрын
thanks, please also upload the video for lost array and maximum shift after xor of codechef lunchtime 19 june
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Will surely try.
@meetbrahmbhatt1531
@meetbrahmbhatt1531 2 жыл бұрын
Best! Thanks alot for this.
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
:)
@devilronak7262
@devilronak7262 2 жыл бұрын
Very good explanation 🔥
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Thanks Ronak
@revanthkalavala1829
@revanthkalavala1829 2 жыл бұрын
Its not always true that addition operation will be used at the end. It might be op1, if min element of array is +ve in array as we are trying to make all elements equal.
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Yeah I mentioned that in the video.
@aryamantodkar6558
@aryamantodkar6558 2 жыл бұрын
I'm not able to solve div2 C's, how should i improve?
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Solve previous div2c's
@aryamantodkar6558
@aryamantodkar6558 2 жыл бұрын
@@competitivecoding-newtonsc9601 I have to see the solution of C's, I'm not able to solve them on my own. Should i try practicing lower rated problems?
@abcefg7045
@abcefg7045 2 жыл бұрын
how will you proove that this will be the minimum number of operations? and why codeforces gives this kind of problems I hate constructive algo and greedy
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
I dont have a concrete proof, but I think the first observation helps with the intuition.
@rahulsrivastava3172
@rahulsrivastava3172 2 жыл бұрын
D wale ka bhi soln upload kr dia kr bhai..
@EpsilonCodes
@EpsilonCodes 2 жыл бұрын
I intern too bro, hard to take out 4 hrs/ a day, and problem D usually gets a poor engagement. Will surely try to though, if I get the time tonight.
@rahulsrivastava3172
@rahulsrivastava3172 2 жыл бұрын
@@EpsilonCodes theek h bro.. Tere soln and approach mujhe pasand aati.. So i usually get on this channel or one created by IITM peeps.. D mai he thoda issue rehta and D ka soln usually milta ni jldi.. So i said.. Anyways.. Great work.. Keep going bro
@EpsilonCodes
@EpsilonCodes 2 жыл бұрын
@@rahulsrivastava3172 thanks man, appreciate that :)
@ganeshchowdhary3024
@ganeshchowdhary3024 2 жыл бұрын
Lost at implementation part
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Which part?
@ganeshchowdhary3024
@ganeshchowdhary3024 2 жыл бұрын
@@competitivecoding-newtonsc9601 Yours is clear. I lost while i am solving. Got AC after seeing your clean implementation
@aryamankumar645
@aryamankumar645 2 жыл бұрын
Very good explanation as always
@competitivecoding-newtonsc9601
@competitivecoding-newtonsc9601 2 жыл бұрын
Thanks again!
The Third Problem || Codeforces Round 804 Div2 Problem C
26:36
Competitive Coding - Newton School
Рет қаралды 2,1 М.
Mark and His Unfinished Essay || Codeforces Round 807 Div2 Problem C
19:36
Competitive Coding - Newton School
Рет қаралды 3,4 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Winning Codeforces Round #628 (Div. 2) + Facecam
1:08:33
William Lin (tmwilliamlin168)
Рет қаралды 399 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 271 М.
Zero Path || Codeforces Round 801 Div2 Problem C
13:05
Competitive Coding - Newton School
Рет қаралды 1,9 М.
these are the habits of the top 1% students, that you can do.
12:58
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 855 М.
Rant: Entity systems and the Rust borrow checker ... or something.
1:01:51
How a Russian student invented a faster multiplication method
18:48
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН