C. Balanced Stone Heaps | Codeforces Round

  Рет қаралды 1,986

Hitesh Tripathi

Hitesh Tripathi

Күн бұрын

Пікірлер: 15
@Rahul-bl6rv
@Rahul-bl6rv 2 жыл бұрын
well explained
@utsavaggrawal2697
@utsavaggrawal2697 11 ай бұрын
thanks a lot
@ishaankulkarni49
@ishaankulkarni49 2 жыл бұрын
great explanation. helped a lot. pls make more
@rahulsingh40g
@rahulsingh40g 2 жыл бұрын
Bht badhiya bhai Thankyou so much
@AkshaySharma-bg3oj
@AkshaySharma-bg3oj 2 жыл бұрын
Hitesh bhai one thing , even i got that it is binary search in contest but was thinking that how 10^5*10^5 could get passed in 1 sec , because i had read somewhere that 2*10^8 operation per sec is rule of thumb but now a days even 10^9 can get passed in 1 sec but here it is 10^10 so how this sol not getting tle, correct me pls.
@HiteshTripathi
@HiteshTripathi 2 жыл бұрын
For clarification about this , you should always see last line of input section, there it is written that sum of n over all test cases will not exceed 2.10^5 , so basically testcases are designed like this that they dont exceed given limit
@schrodingerscat6189
@schrodingerscat6189 2 жыл бұрын
Another thing this is that Using binary search is NlogN and not N^2 so it wont reach 10^10 but only till 10^6.... Ofcourse you should consider that summation of all N over all tests is
@aniketkankekar410
@aniketkankekar410 2 жыл бұрын
Nice Explanation
@abhizanzarukia7613
@abhizanzarukia7613 2 жыл бұрын
Hitesh how can we predict that the problem can be solved with binary search? i mean finding max of a min or vice versa does that thing give intuition of using binary search? can you please explain how one can come up with binary search as correct algo for this que?
@HiteshTripathi
@HiteshTripathi 2 жыл бұрын
Yes i just checked that we hv a range and we hv to find maximum or min , can we apply binary search , it is like this
@shreyashagrawal5406
@shreyashagrawal5406 2 жыл бұрын
Hi, do you have any suggestions on how one should upsolve the problems, which we couldn't solve during contests?
@HiteshTripathi
@HiteshTripathi 2 жыл бұрын
Just starting solving from past contest in which you haven’t participated…… nd if you hv time to give virtual contest so try to give virtual of all those contests ……
@souviknandi9298
@souviknandi9298 2 жыл бұрын
khub valo dada
@promphotos5403
@promphotos5403 2 жыл бұрын
Do u use a light pen ?
@HiteshTripathi
@HiteshTripathi 2 жыл бұрын
Yes
C. Weird Sum | Codeforces Round #775
19:59
Hitesh Tripathi
Рет қаралды 1,2 М.
D | Make Them Equal | Educational Codeforces Round 122 (Rated for Div. 2)
21:33
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 153 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 6 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
(Hard)Maximum Good People Based on Statements | Weekly Contest 277
15:57
Are you a buffalo? |  Stand up comedy by Manik Mahna
16:27
Manik Mahna
Рет қаралды 1,1 МЛН
Codeforces Round 982 (Div 2) | Video Solutions - A to D1 | by Harsh Gupta | TLE Eliminators
1:22:04
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 497 М.
The Quest To Make Unbreakable Glass
22:23
Veritasium
Рет қаралды 2,1 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 153 МЛН