E problem was very interesting today, really enjoyed solving it, got AC Verdict in last two mins(best feeling ever).
@andrejvarga87812 жыл бұрын
So clean code and well explained problem F, awesome!!!
@hirenachhada9180 Жыл бұрын
F Problem explained in very nice manner nice to see this much new concepts :)
@Anonymous____________A7214 ай бұрын
Now?
@prakash_772 жыл бұрын
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.
@yashtote96822 жыл бұрын
Hi harisham!! Is rooting tree ( in problem F) a specific technique to solve these types of problem?? Can you please answer. Thank You!
@saketkumarsingh21492 жыл бұрын
sir, I didn't get what is the special node which you are talking about in question F
@5590priyank2 жыл бұрын
For D, we can start with each leaf node, and visit its parent until we find not visited parent.
@arutsudar2 жыл бұрын
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")
@Harisamsharma2 жыл бұрын
Sure, thanks!
@himanshushekhar58752 жыл бұрын
Always Op 😎😎😎
@yourbestie41382 жыл бұрын
very intuitive as always
@dongripavankumar93422 жыл бұрын
Please make tutorial on problem G Sorting Pancakes. Thanks
@siddharthmagadum162 жыл бұрын
+1
@ishitajhunjhunwala10732 жыл бұрын
+1
@soumyadeepdash48052 жыл бұрын
Thanks for the problem F ....I' m struggling with it since 1 hour but didn't find anything close to solution
@satyampal72352 жыл бұрын
Awesome as always
@nishantsahoo38352 жыл бұрын
06:00 I got MLE due to passing the adjacency list too as argument :(
@rohandsouza91472 жыл бұрын
You can pass it by reference
@trueevil25902 жыл бұрын
Does problem F require understanding of graph algorithms ??