Це відео не доступне.
Перепрошуємо.
L9. Reverse a LinkedList | Iterative and Recursive
Вставка
- Опубліковано 25 лис 2023
- Problem Link: tinyurl.com/2a...
Entire LL Sheet: takeuforward.o...
Check our A2Z DSA Course: takeuforward.o...
Please do give us a like, and subscribe to us if you are new to our channel.
Do follow us on our socials: linktr.ee/take...
U r not only teaching linkedlist u r teaching values to give back to this community..
Thankyou Striver
I was confused until I watched the dry run of recursion... Thanks for having Striver!..
same
Was a bit confused regarding recursive approach of this problem for a while. Your explanation just cleared out all of it. Great video!!❤💯
Hands down, the best explanation on UA-cam!
00:10 Iterative Approach
14:39 Recursive Approach
very nice explanation Striver!
Understood!
so beautiful so elegant just looking like a wow
Logic are crystal clear with your perfection in explanation , i don't even
need to look code .
Awesome man. The way you tried to portray the recursive one is actually over the moon..
recursive approach of soving linked list is awesome non of any youtuber has explained it such fantastically
All the video lectures and the articles helped me a lot to gain confidence in DSA and will be helping me in the interviews. Thank you Striver bhaiya for bringing such amazing content for free.
Exceptional explanation !!! I've never intuitively understood recursive version of reversing a LinkedList, but this video helped me understand that too so easily🙇🙇
In iterative method use this , if you get null exception:
Node temp = head;
Node p = null;
While(temp!=null){
Node curr = temp.next;
temp.next=p;
p=temp;
temp=curr;
}
return p;
The dry run part is genius!! very nice explanation.
If you are a beginner or even an intermediate this is the best playlist to follow for DSA
The way he explains sounds like Arnab Goswami highlighting the news ! 😂
explanation of the recursive approach was just exceptional .
thankyouu striver
Great explanation!!! The best i've ever seen on recursion !
Recursion approach is just LIT , bhai kamal kr diya striver bhai
Your DryRun thing in these recursion approaches is amazing
Awesome and hats off 🙏🙏
thank you so much Striver.
Amazing explanation at recursive approach thank you striver for this amazing course😊🎉
Brooo u are crazyyyy that dry run is the best i have seen thank you understood
Finally I understood this recursive concept.........Nice Explanation👍👍
Thanks for that dry run approach
Even more concise:
function reverseList(head, prev=null){
if(head === null) return prev;
const next = head.next;
head.next = prev;
return reverseList(head.next, head);
}
Awesome Explanation!
Loved the explanation for recursive solution, especially the DRY RUN
best explanation ever!
I was very confused with this recursive method, how does it reverse. It is super clear after watching your video !
understood very much
thank you sir
Amazingly explained, #Striver rocks, gold bless you & all
0:00 -4:58 = Brute Force (Using Stack)
5:00 - 14:45 = Iterative
14:50 = Recursive
UNDERSTOOD, Thank You So Much for this wonderful video...........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
dry run was awesome
understood , best part was dry run of recursive code
you are a genius
i love youuuu u r thee besttttt teacherrrrrrrr EVERRRRRRRRRRRRR
thank you man tanks for clarifying the recursion from scratch
Striver i'm solving A2Z course and i'm at the strings but there is no video explanation for them. i searched videos on youtube but one explains in detail and clear like you. So can you PLEASE make videos on that topic(i will wait). Thank You
Same bro
greatest video superb sir !!
you are god
Broo your way of explaining is awesom👍👍
Hey, I find your videos very valuable interms of understanding things, but just not able to find the links in the description whatever you mention in the video, not sure why.
Thanks Striver for these videos.
you can find the links on his website whose link is in the description.
Understood
Bro can you push the code ..The way you explain is very interesting to watch and learn the concepts.
Dry run part was actually brilliant
So Beautiful , So elegant just looking like a WoW
NICE LECTURE AND PLZ UPLOAD REMAINING LECTURES OF A TO Z SDA SHEET PLZ THEY ARE VERY HELPFULL FOR US
15:00 Recursion Starts
best explanation ever
Wow great explanation
9:45 Take U Forward
Recursive is damnn good!!
Recursive approach: 14:50
Thanks 🙏 sir
understood ❤
Awesome teaching
Simply the best!!!
excellent explanation was just fabbb
Just Brilliant ❤
you are our god . thank you soo much
Which process is the best you have to explain in 1 min through time n space complexity steps in the end which you didn't
Amazing explanation
thanks for this explanation
Best video explanation
Understood
Will comeback after a month and report where I am.
understood
Great video
Understood Thanks a lot ❣❣
what a man 👏👏
UNDERSTOOD SIR
bhaiyaa app great ho❤❤❤❤
Thank you bhaiya
Amazing !!!
14:!4 The death stare
Thank you striver😃😃
Man, I must say, wonderful video. You explained the recursive solution so well 🤌. I have a much deeper understanding of how to deal with recursion in general because of you. Usually, in recursion people skip through the nitty-gritty details like the current state of the variables involved and the structure of the linked list in intermediate steps, but you have gone through all of it, so thanks! Hope you get more views and subscribers.
Understood✅🔥🔥
the BEST💯
Thanks A lot
big fan bhai luv you bhai
understand
Understand ❤❤
best best best best ...................................................................
Thanks ❤
In recursive way m..I wrote the same code given above ..... Stack overflow error aa raha hain ....give me soln
Understooood
understood!!!
20:04 check it out🤣
Thanks
Understood!
🐐
Is it me or anyone else also thinks that things have been a little tougher from Linked List
I think it's you only.
No man. I've given up on Linked last multiple times to reach this far (not even half).
Thank you Sir.
bro is recording me aap bahut hi jyda tired dikh rhe ho.. aapko ek acche neend ki jrurat hai..
Pdhai kar lo, meko dekh kr kya hoga 🤦🏼♂️
@@takeUforward 😂
@@takeUforward Thank You for your Hardwork Bhaiya
@@takeUforward 😂jainwin
why can't we just change the head rather than using temporary node and then return the head;
recursive solution of linked list
ListNode* reverseList(ListNode* head) {
if(head == NULL) return NULL ;
if(head->next == NULL ) return head ;
ListNode * newHead = reverseList(head->next);
head->next->next = head ;
head->next = NULL;
return newHead ;
}
Bhai mere college ke professors ko nikal do, Raj bhai ko HOD bana do.
Fab
❤