When I was trying to solve this problem, I got the part that I needed to skip a path before starting to do the DFS. However, it's very complicated to get how many elements will be on a given path :(
This is for sure one of the harder problems I have seen IMO, and I have done a lot of problems. The implementation is very easy but the ideas are quite tricky
Please don't stop doing daily problems. Your videos are the only one that make sense.
+1
Yeah his vedios make my habit to solve the daily problem.
+1
+1
Especially, the Hard problems.
A tough one! Unable to solve this on my own. Thanks for the solution!
RIP to candidates who get these question and expected to come up with optimized solution 😢😢😢.
When I was trying to solve this problem, I got the part that I needed to skip a path before starting to do the DFS. However, it's very complicated to get how many elements will be on a given path :(
He still made a little intuitive to figure out... But this questions is too hard honestly!
my glorious king neetcode
Hey you were right.
I get memory limit exceeded for today's POTD.
return sorted([i for i in range(1,n+1)], key=lambda x:str(x))[k-1]
bro n is 10^9 😶🌫
@@DevoteeInCorporate I am getting TLE for yesterday's neetcode solution.
that's why he gave a better solution
@@anonymoususer9053 I mean even O(n) is not accepted?
@@mcbotface that's why the problem is hard.
Nice video, but each time you say "long story short" I get lost lol. I'm sitting with a piece of paper and drawing trees now trying to get it.
love your work! Helps us on our journey!
Sir, I really like your videos a lot. They are really helpful. But Please discuss the weekly leetcode contest solutions also sir.
Honestly, if you have never seen this problem before and are in an interview setting, who would figure this out??
Difficult to understand.
Love you , Thanks for doing this daily
I feel like I'll never be smart enough to solve this kind of problem
This is for sure one of the harder problems I have seen IMO, and I have done a lot of problems. The implementation is very easy but the ideas are quite tricky
People doing in java in the helper function make res,nei and cur to long and do (int) to return int
Could you please do 373. Find K Pairs with Smallest Sums? Didn't find any intuitive explanations anywhere else.
Nice explanation, Loved it.
Thank you for saving us
bro I am lost
same.. this problem is one of the hardest ive seen tbh
13:50. WOn't that be 1100 instead of 1110?
was waiting for this only
Could you potentially make a video on leetcode 835?
Thank you
I get it but also I don't :/
You cant use yesterdays code cuz of time limit exceeded
bye streak, this shit is too complicated.
Op🎉
If I get asked this I’m definitely cooked
Great Explanation, kindly use the given example for explaining the problems. Helps in better understanding.
+1
@@7Idiots-w2i Given examples frequently too trivial to properly illustrate the algorithm.
@@kohaigun-de baga chepparu
What’s your LeetCode username?
Neetcode
singhnav314
singhnav314