Finally I understand the recursive method with this video after I spent a whole day digging through tons of other learning materials on the web.
@iam_tigress4 жыл бұрын
same here!! I watched videos until I found this gold right here! I GOT IT NOW. Thank you Jesse!!!
@mobiledeveloper60684 жыл бұрын
I also spent all-day digging through materials. even try to trace every step in my code and I am still confused until this video. 10:30 - 10:40 is all I need...I think 99% of people just pretend they understand this simple algorithm that is why they can't really explain it.
@benwozi61663 жыл бұрын
@@mobiledeveloper6068 hey I understood most of the part but I am really confused how the 5 remains in the variable head. For example: head = reverse(node.next); node.next.next = node, node.next = null, return head. The caller when reached 5 it returned 5 now the head variable has the value 5 when the caller returned back to 4 but when the caller returned back to 3 why not the head value is updated with 4?? Hope you got my question.
@benwozi61663 жыл бұрын
@@iam_tigress hey I understood most of the part but I am really confused how the 5 remains in the variable head. For example: head = reverse(node.next); node.next.next = node, node.next = null, return head. The caller when reached 5 it returned 5 now the head variable has the value 5 when the caller returned back to 4 but when the caller returned back to 3 why not the head value is updated with 4?? Hope you got my question.
@benwozi61663 жыл бұрын
hey I understood most of the part but I am really confused how the 5 remains in the variable head. For example: head = reverse(node.next); node.next.next = node, node.next = null, return head. The caller when reached 5 it returned 5 now the head variable has the value 5 when the caller returned back to 4 but when the caller returned back to 3 why not the head value is updated with 4?? Hope you got my question.
@akihana41134 жыл бұрын
This is the best reverse linked list in recursive tutorial I've ever seen.
love this! much better than any other ones out there, cant stand the other ones
@ustunkaya2 жыл бұрын
This is a very articulate explanation, thanks Jesse. Making something look so simple is an art.
@sanjeevchopra23813 жыл бұрын
He has expained the concept the best way. others were confusing . I am talking about whole of Internet. I want to know why one person has disliked the video.
@AhmedMarzookisabeastАй бұрын
Man the visual was such a great way to explain it made everything click so much
@grindinglcmeow8 ай бұрын
The animation is a super clean explanation to the `node-->next->next` confusion!! Big thanks mate.
@rdwok14 Жыл бұрын
I finally understood the recursive solution after watching your video. In one sentence: the sub-problem is setting the next node's next the current node, and then setting the current node's next to null.
@rochelleroberts58374 жыл бұрын
Thanks for spending extra time explaining node.next.next = node. I really appreciated you breaking it down! Thanks again.
@SangriaSarah3 ай бұрын
This is so helpful and thorough. the visuals are fantastic. thank you for putting this together i'm sure it took a lot of work! helped so many people understand it better
@jaidaayasser12602 жыл бұрын
The best explanation! I wish all linkedList problems are solved like that! You're the best Thank you
@ledinhanhtan Жыл бұрын
I feel relieved after what your explanation. Thank you!
@urrahman1963 жыл бұрын
this is the best so far on recursion, thanks a lot buddy. Very intuitive.
@444brando4 жыл бұрын
The detail and clarity in this video was perfect!
@karimmessaoud82232 жыл бұрын
Very good explanation of all the algorithms episodes. Thank you! Next would be welcome.
@akhilr942 жыл бұрын
Finally! This is what I needed. Thank you so much. I used to think, once 5 is returned by last fn call, ie reverseList(4) why can't we do head.next = node. But that'd only result in [5,4], [5,3],etc for each call. Even if I make it work, which is possible. By the end of all calls, I will not have the new head of the reversedList altho the list might be reversed. This video helped me understand that we are return 5 all the way back to the first call. That is the gotcha for this algo in my opinion.
@acca14615 жыл бұрын
I like your explanations before implementing the algorithms
@santhoshkumarrajan49632 жыл бұрын
Loud and Clear! Thanks for the explanation!
@ikrenji81252 жыл бұрын
excellent. the tricky part for me was understanding node.next, but this video cleared it up
@lennythach6072 жыл бұрын
Absolutely Brilliant! Keep making these videos Jesse!
@sahilrizvi30393 жыл бұрын
Love you bro ❤️❤️, after wasting 3hrs i finally understand how this Work.
@tanmayasamaltk643 жыл бұрын
The best explanation is here. I can guarantee that student will have no fear of recursion after watching this love ❣️from my side.
@michaelgreim50004 жыл бұрын
This is the only video that made sense to me. Thanks so much!
@carefree_ladka Жыл бұрын
Finally understood the recursive approach. Thanks a lot
@Jgrabow19852 жыл бұрын
Oh my god. This is actually the best explanation of any algorithm I think I have ever seen. You should really do more!
@parmeetsingh24794 жыл бұрын
I saw many explanations but this is my favorite 🙌 Explained amazingly 👏
@abhinav83852 жыл бұрын
thank you so much! saw tons of videos on net, still no use. after hours & hours of finding found it!
@chiefsittingstill60613 жыл бұрын
Grand job, thanks. The visualisation of the logic in Powerpoint really helps, but for me it was the crystal clear explanation of what node->next->next = node (to use the C++ syntax) is doing, a line of code that seems mystifying at first, that really clinched it.
@horaciocastillodelrio59674 жыл бұрын
Damn this is the only video that explains the whole thing!! Thank You Man!
@StyleBySabina3 жыл бұрын
Perfect explanation! Finally understood reversing a linked list, thank you!
@chetterhummin1482Ай бұрын
Great explanation, very clear, thank you!
@Oliver-nt8pw10 ай бұрын
This is a very good video! Really helped me to understand!
@stealth17264 жыл бұрын
Hey Jesse, just wondering if your planning on releasing anymore videos or courses, as they are incredibly helpful, thanks for the great content.
@lukeguan13974 жыл бұрын
That is an amazing explanation.
@krishnavishwakarma90623 жыл бұрын
Thank you brother... I have cleared my doubt through this video.. 🙃
@TheMustafa5233 Жыл бұрын
Thank you for this; all lighted up @ 9:25
@baothach9259 Жыл бұрын
Excellent video!!!
@kunpeng86464 жыл бұрын
Thanks for sharing, what a fantastic job you did!
@muhisaleh45982 жыл бұрын
thnx a lot :)) finally i got this recursion !!!!!!!!
@phanmarreddy579 Жыл бұрын
really nice visualization !!!!
@jacklo32 Жыл бұрын
amazing explanation !
@milesl5772 жыл бұрын
Your video is very helpful
@AppleDeuceTTV2 ай бұрын
This is great. Your demonstration of node.next.next helped me out a ton.
@erichubbard45694 жыл бұрын
THANK YOU. I didnt understand that it returns five to the previous caller, I didnt even know that was a thing.
@tiennguyenthuy75632 жыл бұрын
Very helpful. Thank you
@mouaz_ahmed_siam2 ай бұрын
it's amazing explain thank you much
@swapnil11754 жыл бұрын
THANK YOU.....it was really helpful
@jamesrockybullin52505 жыл бұрын
I'm very new to linked lists and recursion, but returning the new Head value recursively through all the nodes seems pretty wasteful/inefficient. Surely the whole point of a linked list is that a middle node, say node3, does not need to be concerned with where the list starts or ends? I did it the same way because the question said to do it recursively. But, in the real world, would you determine the new Head iteratively? This would simplify the recursive method and it seems to me like it would make the code run a bit faster. Would it? Or is it better to stick all of the functionality in one place and do everything recursively?
@girirajrdx72772 жыл бұрын
recurssion does the work only on its way back....while linked list being manipulated we are also doing the return of new head with it....complexity may be at 2n which is just O(n) (which is also for a iteration)
@abhisheksuryavanshi96754 жыл бұрын
Ladies and Gentlemen, now that's how you explain reversing a linked list using recursion
@abdullokhalimov20122 жыл бұрын
Thank you a lot!
@fredflintstone80485 жыл бұрын
Excellent!
@German-ov9de Жыл бұрын
Subscribed
@ScitechExplorerEnglish2 жыл бұрын
Hi sir I have questions : how can we declare a delegate for an overloaded method
@chien-yucode9928 ай бұрын
Nice!
@nicholasmciver59324 жыл бұрын
You Should Do a tutorial on Linq and LinqPad
@carsten2600 Жыл бұрын
OMG ur legend!
@stanleylew1688 Жыл бұрын
Thanks! 🙏
@saeedmirzaei13 жыл бұрын
I appreciate!
@andjelaarsic92172 жыл бұрын
Thanks!
@theashero5 жыл бұрын
Hi Jesse, Could you please share the book name and writer name which you referred while uploading the videos for Exam 70-483. I love those videos and going through them and will soon give the exam. Thank You So Much for all your videos.
@syedhassanfarman35664 жыл бұрын
Are you goin to complet Exam 70-483: Programming with C# series ?
@benwozi61663 жыл бұрын
hey I understood most of the part but I am really confused how the 5 remains in the variable head. For example: head = reverse(node.next); node.next.next = node, node.next = null, return head. The caller when reached 5 it returned 5 now the head variable has the value 5 when the caller returned back to 4 but when the caller returned back to 3 why not the head value is updated with 4?? Hope you got my question. Thanks in advance
@farisal_homsi48265 жыл бұрын
Jesse, Jesse, we have to cook, ah I mean code
@earthlingthings2 ай бұрын
You could simply use a threaded binary tree easy as
@tianyiwang48204 жыл бұрын
thanks
@VinuP20235 жыл бұрын
Thanks much
@Blowyourspot7473 жыл бұрын
For the algo
@abhishek-kapoor4 жыл бұрын
thx
@poikilotherm56112 жыл бұрын
😀
@antonsemenov71762 жыл бұрын
not clear explanation
@ANIRUDHADEY-t5y4 ай бұрын
Finally I understand the recursive method with this video after I spent a whole day digging through tons of other learning materials on the web.