Beautiful. When I do it i always worry about the original parameter being erase so I always create a new separate return valuable. Now I can see that is not neccessary and I could've just reuse the parameter for the result. Tks.
Wow, thank you. I found your video as my professor said he would quiz us on sorting multiple and this video was super clear. The implementations on what stacks we're being called was helpful as well. Thank you so much. I know this wouldn't work for 3 but for 2 this was extremely easy to understand.
Thank you so much, 3 years ago, and it still valuable today!!!, I have been stuck trying to visualize this for hours due to the use of .next, your video just give me clarification, thank you thank you and thank you
Fisher Coder, thank you so much for being such a great explainer and taking the time to do these videos! May you please do an Amazon leetcode series? Have a great day!
It is so clear explanation thx but i have a one thing that i didnt understand clearly.I just can't understand the returning part after we recall the function how does it work exactly ?
despite your explanation being clear-cut and easy to understand, it's still somehow a little bit confusing for beginners like me to really grasp the ins and outs of how this code actually works under the hood.
I loved the explanation. The thing is I can understand from he code, but I cannot understand and then code. How to think in a way to write code not read the code? Any tips especially for recursion?
I wish you went over your thought process for solving this problem. Like what came to mind when you saw this problem and how you thought of your approach.
@@Tren9528 it returns pointer l1 or l2 after function calls are released from stack. Watch the second half of the video when he steps through the code. Recursive functions sits in the stack and on top of each other. When the recursive function finally reached to the base case, it starts to make return value and pass the value to the function sitting below it while the current function is popped off the stack after the work is done. The return value will be either l1 or l2 which are the pointers that point to the finish product. The pointer will be reassigned each time before functions are popped off the stack.
Beautiful. When I do it i always worry about the original parameter being erase so I always create a new separate return valuable. Now I can see that is not neccessary and I could've just reuse the parameter for the result. Tks.
Right, it's confusing at first glance, and I'm glad that you found this video useful to help understand this probelm! :)
The walk-through using the stacks and the 2 linked lists as they're being built while the code goes on really helps! Subscribed!
Wow, thank you. I found your video as my professor said he would quiz us on sorting multiple and this video was super clear. The implementations on what stacks we're being called was helpful as well. Thank you so much. I know this wouldn't work for 3 but for 2 this was extremely easy to understand.
Glad it helped!
Thank you so much, 3 years ago, and it still valuable today!!!, I have been stuck trying to visualize this for hours due to the use of .next, your video just give me clarification, thank you thank you and thank you
Glad it was helpful! Cheers!
A very good idea to use different colours to present l1 and l2 in different calls, very helpful!
Glad it was helpful!
After watching more than 5 videos I finally understoon the backtracking from this one. really thankful🥰
Glad it helped!
@@FisherCoder ❤️
Thank you so much! I was having trouble understanding the final stack calls and this made it so much better
Glad it helped! :)
bruhh, sameeee
Thank you so much for dry running the code. It helps to visualise what I am seeing> You are amazing!
Glad it helped!
Oh it's so greate. I'm confused with Recursion and I foud this video. Thank youu
You are absolutely awesome man. Thank you!
Glad it was helpful! Thank you!
So explanatory! Many thanks for your visualizations.
Glad it was helpful!
Fisher Coder, thank you so much for being such a great explainer and taking the time to do these videos! May you please do an Amazon leetcode series? Have a great day!
Thank you so so much! I was looking for such an explaination. You just cleared my all doubts :)
Glad it was helpful!
Guy, great explanation with code and graph!!! thank you, keep going.
Glad you liked it!
It is so clear explanation thx but i have a one thing that i didnt understand clearly.I just can't understand the returning part after we recall the function how does it work exactly ?
Nice and clear .Thank you so much Fisher Coder
Glad it helped
Best Explanation ever❤️❤️❤️❤️. Thank you ❤️❤️
Glad it was helpful!
despite your explanation being clear-cut and easy to understand, it's still somehow a little bit confusing for beginners like me to really grasp the ins and outs of how this code actually works under the hood.
Practice makes perfect, try running code locally a few times and you'll get the gist of it.
Clear explanation! Thanks!
Literally great way of explanation.
Glad it was helpful!
Thank you so much for your clear explanation!
Glad it was helpful!
This helped a ton. Thank you so much mate!
No problem 👍
sir U are amazing teacher . love from INDIA
I loved the explanation. The thing is I can understand from he code, but I cannot understand and then code. How to think in a way to write code not read the code? Any tips especially for recursion?
I wish you went over your thought process for solving this problem. Like what came to mind when you saw this problem and how you thought of your approach.
Great explanation. Thank you
Glad it's helpful, thanks!
This is the kind of explanation that "gives lemonade seltzer to a heavy stomach" as Koreans have it. Thanks!
Excellent and Easy explanation, Thank you so much
Glad it was helpful!
Great explanation. Thanks!!
Glad it helped!
LEGIT HUGE THANKSSS!
ESPECIALLY THE PART ABOUT HOW RECURSIVE CALLS ARE WORKING
Glad it's helpful!
Awesome explanation 💯🔥
Glad you liked it!
Great explanation of the answer. Perhaps it would be good to explain to your viewers how one derives this solution rationally?
i'm very bad at visualizing and this was perfect
Glad it helped!
@@FisherCoder no thank you. DS&A in an essence isn't that hard, sometimes you just need a drawn out step by step to get it. And that's what you got.
It was perfect. thank you
You're welcome 😊
Great Explanation. Thanks a lot!
Glad it was helpful!
dude you're a genius
this was excellent explanation
Glad you found it helpful! :)
great concept
thank you
Great explanation man
Glad you liked it!
amazing stuff :)
Glad you think so!
Thank you so much!!!
You're welcome!
U r God for new people thanks
Glad it's helpful!
God bless you, my estimated man
Very very nice video
Thank you so much 😀
Thanks for helping
You are welcome!
this
was
beautiful
Thank you! Glad you found it helpful!
@@FisherCoder cleared up so many lagging ideas . Thanks again
You're awesome bro..
thanks man
liked it a lot
thank you so much!
Glad it helped!
What does return l1 or return l2 do in the recursive if else statement? Return the current pointer?
@@Tren9528 it returns pointer l1 or l2 after function calls are released from stack. Watch the second half of the video when he steps through the code. Recursive functions sits in the stack and on top of each other. When the recursive function finally reached to the base case, it starts to make return value and pass the value to the function sitting below it while the current function is popped off the stack after the work is done. The return value will be either l1 or l2 which are the pointers that point to the finish product. The pointer will be reassigned each time before functions are popped off the stack.
great explination.keep it up bro.
Thanks a ton
Thank you !!!
You're welcome!
thnx a lot
Welcome!!
Good Job!
Thank you! Cheers!
very nice explaining, but I think the memory space is O(1) because you don't call stack or use push & pop method here
Internally, a stack is used to maintain recursive function calls.
You are a good looking guy, you look like me but older
0 sec ..