Codeforces Round 787(Div-3) Solutions || Problems D,E, and F

  Рет қаралды 3,810

Harisam sharma

Harisam sharma

Күн бұрын

Пікірлер: 21
@rohandsouza9147
@rohandsouza9147 2 жыл бұрын
E problem was very interesting today, really enjoyed solving it, got AC Verdict in last two mins(best feeling ever).
@andrejvarga8781
@andrejvarga8781 2 жыл бұрын
So clean code and well explained problem F, awesome!!!
@hirenachhada9180
@hirenachhada9180 Жыл бұрын
F Problem explained in very nice manner nice to see this much new concepts :)
@Anonymous____________A721
@Anonymous____________A721 4 ай бұрын
Now?
@prakash_77
@prakash_77 2 жыл бұрын
You can simplify the implementation of F by taking y as a special node in addition to the other k nodes. That way, you'd just have to subtract the simple distance from x to y at the end.
@yashtote9682
@yashtote9682 2 жыл бұрын
Hi harisham!! Is rooting tree ( in problem F) a specific technique to solve these types of problem?? Can you please answer. Thank You!
@saketkumarsingh2149
@saketkumarsingh2149 2 жыл бұрын
sir, I didn't get what is the special node which you are talking about in question F
@5590priyank
@5590priyank 2 жыл бұрын
For D, we can start with each leaf node, and visit its parent until we find not visited parent.
@arutsudar
@arutsudar 2 жыл бұрын
Nice explanation and neat code on Problem E. One minor correction at 07:50 - Reduce all occurrences of "z" and reduce it to "y". Or, Reduce all occurrences of "a" and reduce it to "z". (Not "z" to "a")
@Harisamsharma
@Harisamsharma 2 жыл бұрын
Sure, thanks!
@himanshushekhar5875
@himanshushekhar5875 2 жыл бұрын
Always Op 😎😎😎
@yourbestie4138
@yourbestie4138 2 жыл бұрын
very intuitive as always
@dongripavankumar9342
@dongripavankumar9342 2 жыл бұрын
Please make tutorial on problem G Sorting Pancakes. Thanks
@siddharthmagadum16
@siddharthmagadum16 2 жыл бұрын
+1
@ishitajhunjhunwala1073
@ishitajhunjhunwala1073 2 жыл бұрын
+1
@soumyadeepdash4805
@soumyadeepdash4805 2 жыл бұрын
Thanks for the problem F ....I' m struggling with it since 1 hour but didn't find anything close to solution
@satyampal7235
@satyampal7235 2 жыл бұрын
Awesome as always
@nishantsahoo3835
@nishantsahoo3835 2 жыл бұрын
06:00 I got MLE due to passing the adjacency list too as argument :(
@rohandsouza9147
@rohandsouza9147 2 жыл бұрын
You can pass it by reference
@trueevil2590
@trueevil2590 2 жыл бұрын
Does problem F require understanding of graph algorithms ??
@Anonymous-pj2mv
@Anonymous-pj2mv 2 жыл бұрын
yes
Codeforces Round 774(Div-2) Solutions || Problems A,B,C, and D
42:54
Harisam sharma
Рет қаралды 3,3 М.
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 50 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 27 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 128 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 183 МЛН
CodeForces Round #805 Div3 || A,B,C,D,E,F,G1,G2 || Complete Solutions
36:45
Competitive Coding - Newton School
Рет қаралды 6 М.
Codeforces Round 783(Div-2) Solutions || Problems A,B,C, and D
38:08
Harisam sharma
Рет қаралды 2,4 М.
Terence Tao at IMO 2024: AI and Mathematics
57:24
AIMO Prize
Рет қаралды 577 М.
Codeforces Round 787 Div 3 F Vlad and Unfinished Business
8:49
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
Recursive Ray Tracing - Computerphile
17:38
Computerphile
Рет қаралды 31 М.
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 50 МЛН