Пікірлер
@abhijeetthakurdesai
@abhijeetthakurdesai 3 күн бұрын
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-ev8rw
@tuannguyen-ev8rw 13 күн бұрын
thank you very much, so easy to understand😊😊😊
@HussainAli-hn2ef
@HussainAli-hn2ef 14 күн бұрын
great explanation, thanks!
@tvsnath
@tvsnath 19 күн бұрын
Much clear explanation. thank you.
@rajeshamg
@rajeshamg 19 күн бұрын
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.1771
@g.1771 19 күн бұрын
very clear explanation and solution. thanks
@sarvarjuraev1376
@sarvarjuraev1376 20 күн бұрын
Great explanation and a great solution. Thank you so much
@MegaFatPaws
@MegaFatPaws 23 күн бұрын
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
@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
@meirgoldenberg5638 Ай бұрын
Where did $20 come from?
@brofessorsbooks3352
@brofessorsbooks3352 18 күн бұрын
typically they give you an amount periodically to compensate for them loaning your money til maturity
@osazeimohe7269
@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.
@Labourer
@Labourer 2 ай бұрын
Bro don't u got any friends?
@Turnpost2552
@Turnpost2552 2 ай бұрын
Pedo glasses lol
@classicmakersmusic6344
@classicmakersmusic6344 2 ай бұрын
This solution does not pass the time complexity test anymore in leetcode
@BiniyamAlemu-rb4tt
@BiniyamAlemu-rb4tt 2 ай бұрын
perfecto
@dnm9931
@dnm9931 2 ай бұрын
Really good explanation! Thank you so much!
@saleheen1
@saleheen1 3 ай бұрын
That was super helpful and easy to understand
@njvillarey
@njvillarey 3 ай бұрын
At 6:59 shouldn't the minimum value be 0 why was it at 6?
@imetmas1787
@imetmas1787 3 ай бұрын
Really good video summary. Shouldn’t Year 3 cash flow be the face value and coupon i.e. 100+20?
@imrichardcole
@imrichardcole 3 ай бұрын
Yes it should
@perelium-x
@perelium-x 3 ай бұрын
Bravooooooo! I cannot thank you enough. I finally understand. Subbed & Liked! Keep up the gr8 vids bro
@araneuskyuro
@araneuskyuro 3 ай бұрын
Nice explanation, cleared up a lot of questions. Thanks bro
@leisureeddie3468
@leisureeddie3468 3 ай бұрын
Hey Sai, it's 2024 and this video just did wonders for me!
@EstiWee-tw1hc
@EstiWee-tw1hc 2 ай бұрын
So do I!!!
@tindo0038
@tindo0038 3 ай бұрын
wow very good approahc. thanks man
@ChanduGarapati-f3w
@ChanduGarapati-f3w 4 ай бұрын
good explanation brother.
@GlassLooking
@GlassLooking 4 ай бұрын
This is medium on Leetcode
@mahendramannem4407
@mahendramannem4407 4 ай бұрын
damn you made it too easy bro
@ashj1165
@ashj1165 4 ай бұрын
made it much simple to understand!!! thanks :)
@HarikrishnaShubham
@HarikrishnaShubham 4 ай бұрын
Very very very very very nice explanation man! Keep up the good work!
@ThePewPewLord
@ThePewPewLord 4 ай бұрын
Amazing video, thanks
@anoops7974
@anoops7974 4 ай бұрын
Thank you Sai Anish. Great video and explanation.
@lawrenceorolobo
@lawrenceorolobo 4 ай бұрын
Very good, but would it work in java?
@seunadewola3523
@seunadewola3523 4 ай бұрын
Fantastic explanation all round
@enamouredregency
@enamouredregency 4 ай бұрын
Best explanation out there. I was stuck on this problem for so long before watching your video.
@uchechukwuokechukwu3639
@uchechukwuokechukwu3639 4 ай бұрын
You just earned a subscriber, was so explanatory
@soharabsyed
@soharabsyed 5 ай бұрын
Are you gay?
@Gaurav-qh1cy
@Gaurav-qh1cy 5 ай бұрын
best explanation thank s
@julietruong2059
@julietruong2059 5 ай бұрын
really helpful explanation and drawings, thanks Sai!
@dumscode
@dumscode 5 ай бұрын
Nice. BUT HOW AM I SUPPOSED TO REALIZE THAT???
@ankitajha3962
@ankitajha3962 5 ай бұрын
This was really helpfil
@SHIHJUIheh
@SHIHJUIheh 5 ай бұрын
well explained!!! Thank you so much !
@SHIHJUIheh
@SHIHJUIheh 5 ай бұрын
well explained!!! Thanks!
@ankitajha3962
@ankitajha3962 5 ай бұрын
loved the explanation
@AnuRadha-wk8vn
@AnuRadha-wk8vn 5 ай бұрын
@АльбусДамблодр
@АльбусДамблодр 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!
@samankumara1450
@samankumara1450 5 ай бұрын
Very useful this for me and all beginners... Thanks so much....
@priyeshtandel2101
@priyeshtandel2101 5 ай бұрын
Very clear voice, and how beautifully explained. I'm impressed. Thank you so much.☺☺ Again, I liked your way of speaking a lot.
@vaibhavsinghparmar9511
@vaibhavsinghparmar9511 6 ай бұрын
getting wrong answer for test case - [20,1,16,2,17,16,8,15,7]
@ghanshayamcse1199
@ghanshayamcse1199 6 ай бұрын
which compiler she is using
@samuelseverance1440
@samuelseverance1440 6 ай бұрын
great explanation!
@Ysh.CS_guy
@Ysh.CS_guy 6 ай бұрын
Nice explanation