Great explanation! As build function is a recursive function don't miss the base case which is: if not preorder or not inorder: return None
@tuannguyen-ev8rw13 күн бұрын
thank you very much, so easy to understand😊😊😊
@HussainAli-hn2ef14 күн бұрын
great explanation, thanks!
@tvsnath19 күн бұрын
Much clear explanation. thank you.
@rajeshamg19 күн бұрын
This code works OK in Python. It fails for C/C++/golang because of integer overflow when the numbers are too big. Here is the test case for integer overflow. l1 = [2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,9], l2 = [5,6,4,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,2,4,3,9,9,9,9]. Noticed that 1561 / 1563 test cases passed though.
@g.177119 күн бұрын
very clear explanation and solution. thanks
@sarvarjuraev137620 күн бұрын
Great explanation and a great solution. Thank you so much
@MegaFatPaws23 күн бұрын
I'm a bit confused, because first and second diagonal both have a cross over of hitting the row == col statement and row == col -2 on move [1, 1]. If we look at this scenario: A [ 1, 1 ] B [ 0, 0 ] A [ 0, 2 ] B [ 2, 2] A [ 2, 0] You could end up with A arr being [1,2] on indexes 6 and 7?
@kks5475Ай бұрын
you explain very well but i think it can be more optimise- def reverseBits(self, n: int) -> int: result=0 for i in range(32): result = result << 1 | (n>>i)&1 return result
@meirgoldenberg5638Ай бұрын
Where did $20 come from?
@brofessorsbooks335218 күн бұрын
typically they give you an amount periodically to compensate for them loaning your money til maturity
@osazeimohe7269Ай бұрын
Thanks for this. Wouldn't this return the same result regardless of whether you're using inorder, postorder or preorder? You're sorting the result at the end.
@Labourer2 ай бұрын
Bro don't u got any friends?
@Turnpost25522 ай бұрын
Pedo glasses lol
@classicmakersmusic63442 ай бұрын
This solution does not pass the time complexity test anymore in leetcode
@BiniyamAlemu-rb4tt2 ай бұрын
perfecto
@dnm99312 ай бұрын
Really good explanation! Thank you so much!
@saleheen13 ай бұрын
That was super helpful and easy to understand
@njvillarey3 ай бұрын
At 6:59 shouldn't the minimum value be 0 why was it at 6?
@imetmas17873 ай бұрын
Really good video summary. Shouldn’t Year 3 cash flow be the face value and coupon i.e. 100+20?
@imrichardcole3 ай бұрын
Yes it should
@perelium-x3 ай бұрын
Bravooooooo! I cannot thank you enough. I finally understand. Subbed & Liked! Keep up the gr8 vids bro
@araneuskyuro3 ай бұрын
Nice explanation, cleared up a lot of questions. Thanks bro
@leisureeddie34683 ай бұрын
Hey Sai, it's 2024 and this video just did wonders for me!
@EstiWee-tw1hc2 ай бұрын
So do I!!!
@tindo00383 ай бұрын
wow very good approahc. thanks man
@ChanduGarapati-f3w4 ай бұрын
good explanation brother.
@GlassLooking4 ай бұрын
This is medium on Leetcode
@mahendramannem44074 ай бұрын
damn you made it too easy bro
@ashj11654 ай бұрын
made it much simple to understand!!! thanks :)
@HarikrishnaShubham4 ай бұрын
Very very very very very nice explanation man! Keep up the good work!
@ThePewPewLord4 ай бұрын
Amazing video, thanks
@anoops79744 ай бұрын
Thank you Sai Anish. Great video and explanation.
@lawrenceorolobo4 ай бұрын
Very good, but would it work in java?
@seunadewola35234 ай бұрын
Fantastic explanation all round
@enamouredregency4 ай бұрын
Best explanation out there. I was stuck on this problem for so long before watching your video.
@uchechukwuokechukwu36394 ай бұрын
You just earned a subscriber, was so explanatory
@soharabsyed5 ай бұрын
Are you gay?
@Gaurav-qh1cy5 ай бұрын
best explanation thank s
@julietruong20595 ай бұрын
really helpful explanation and drawings, thanks Sai!
@dumscode5 ай бұрын
Nice. BUT HOW AM I SUPPOSED TO REALIZE THAT???
@ankitajha39625 ай бұрын
This was really helpfil
@SHIHJUIheh5 ай бұрын
well explained!!! Thank you so much !
@SHIHJUIheh5 ай бұрын
well explained!!! Thanks!
@ankitajha39625 ай бұрын
loved the explanation
@AnuRadha-wk8vn5 ай бұрын
❤
@АльбусДамблодр5 ай бұрын
Omg, bro, thank you so much this is the best solution i have ever seen!!!! Really ez and optimal i do really like it!
@samankumara14505 ай бұрын
Very useful this for me and all beginners... Thanks so much....
@priyeshtandel21015 ай бұрын
Very clear voice, and how beautifully explained. I'm impressed. Thank you so much.☺☺ Again, I liked your way of speaking a lot.
@vaibhavsinghparmar95116 ай бұрын
getting wrong answer for test case - [20,1,16,2,17,16,8,15,7]