L9. Reverse a LinkedList | Iterative and Recursive

  Рет қаралды 162,454

take U forward

take U forward

Күн бұрын

Пікірлер: 158
@pratulyapratap9329
@pratulyapratap9329 Жыл бұрын
U r not only teaching linkedlist u r teaching values to give back to this community.. Thankyou Striver
@_SahilShah
@_SahilShah 3 ай бұрын
00:10 Iterative Approach 14:39 Recursive Approach very nice explanation Striver! Understood!
@samreenimam8608
@samreenimam8608 6 ай бұрын
I was confused until I watched the dry run of recursion... Thanks for having Striver!..
@user-wp7kd9dv6i
@user-wp7kd9dv6i 3 ай бұрын
same
@tanisha999-e2w
@tanisha999-e2w Жыл бұрын
Hands down, the best explanation on KZbin!
@aryanpinto5105
@aryanpinto5105 11 ай бұрын
Was a bit confused regarding recursive approach of this problem for a while. Your explanation just cleared out all of it. Great video!!❤💯
@durgeshjadhav01
@durgeshjadhav01 7 ай бұрын
Logic are crystal clear with your perfection in explanation , i don't even need to look code .
@abid3801
@abid3801 9 ай бұрын
Awesome man. The way you tried to portray the recursive one is actually over the moon..
@AmanSharma-xy1qm
@AmanSharma-xy1qm 11 ай бұрын
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.
@surayahappy120
@surayahappy120 Жыл бұрын
so beautiful so elegant just looking like a wow
@gauravmishra8782
@gauravmishra8782 10 ай бұрын
The dry run part is genius!! very nice explanation.
@hardikkumarsingh
@hardikkumarsingh 10 ай бұрын
Exceptional explanation !!! I've never intuitively understood recursive version of reversing a LinkedList, but this video helped me understand that too so easily🙇🙇
@sanchitsanyam7359
@sanchitsanyam7359 6 ай бұрын
recursive approach of soving linked list is awesome non of any youtuber has explained it such fantastically
@1handclaps
@1handclaps 8 ай бұрын
If you are a beginner or even an intermediate this is the best playlist to follow for DSA
@raghavgarg-oo6mx
@raghavgarg-oo6mx 8 ай бұрын
explanation of the recursive approach was just exceptional . thankyouu striver
@AADITYASINGH-b2z
@AADITYASINGH-b2z Ай бұрын
Kudos from the entire community for such beautiful explanation.
@dhruvsovasaria
@dhruvsovasaria Ай бұрын
thankyou , tried to understand the recursive approach from everywhere before this since last night , finally understood
@adityamukherjee2207
@adityamukherjee2207 4 күн бұрын
bhaiyya thank u so much for this explanation tomorrow i have ds end sem exam and still this video helped me a lot . thank u so much.
@Salman_Patel_07
@Salman_Patel_07 3 ай бұрын
Crystal clear !!! Thanks for explaining the recursion topic soo beautifully and making it easier to understand. ❤
@endlesslearning26
@endlesslearning26 3 ай бұрын
The recursion code is always a delight to understand , coz you think that how could be solved soo elegantly
@ritikshandilya7075
@ritikshandilya7075 7 ай бұрын
Recursion approach is just LIT , bhai kamal kr diya striver bhai
@harshilpatel3205
@harshilpatel3205 8 ай бұрын
Amazing explanation at recursive approach thank you striver for this amazing course😊🎉
@darshitsingh4378
@darshitsingh4378 2 ай бұрын
BEST VIDEO ON KZbin SEEN ALL
@adveshdarvekar7733
@adveshdarvekar7733 2 ай бұрын
Thank you for putting so much hardwork!
@MrRon-jx9vx
@MrRon-jx9vx 7 ай бұрын
Great explanation!!! The best i've ever seen on recursion !
@surge3.14
@surge3.14 5 ай бұрын
Your DryRun thing in these recursion approaches is amazing
@honeyjot8709
@honeyjot8709 9 ай бұрын
Loved the explanation for recursive solution, especially the DRY RUN
@ddevarapaga5134
@ddevarapaga5134 4 ай бұрын
Brooo u are crazyyyy that dry run is the best i have seen thank you understood
@ujjwalsingh6889
@ujjwalsingh6889 7 ай бұрын
Finally I understood this recursive concept.........Nice Explanation👍👍
@Rieshu-l9i
@Rieshu-l9i 9 ай бұрын
Amazingly explained, #Striver rocks, gold bless you & all
@rahuldwivedi4758
@rahuldwivedi4758 10 ай бұрын
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); }
@arhamansari1312
@arhamansari1312 16 күн бұрын
Excellent work. Thank you so much!!!
@bhusanrath9698
@bhusanrath9698 5 ай бұрын
0:00 -4:58 = Brute Force (Using Stack) 5:00 - 14:45 = Iterative 14:50 = Recursive
@PeterParker-ee6ep
@PeterParker-ee6ep 2 ай бұрын
dry run makes the explanation clear.
@manasbhatia1191
@manasbhatia1191 5 ай бұрын
Is it me or anyone else also thinks that things have been a little tougher from Linked List
@vibhavsharma2724
@vibhavsharma2724 4 ай бұрын
I think it's you only.
@aspirant500days7
@aspirant500days7 4 ай бұрын
No man. I've given up on Linked last multiple times to reach this far (not even half).
@stith_pragya
@stith_pragya 10 ай бұрын
UNDERSTOOD, Thank You So Much for this wonderful video...........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@amitarya4894
@amitarya4894 3 ай бұрын
Awesome and hats off 🙏🙏 thank you so much Striver.
@AbhishekKumar-cd4gg
@AbhishekKumar-cd4gg 4 ай бұрын
understood , best part was dry run of recursive code
@swathigp3818
@swathigp3818 5 ай бұрын
I was very confused with this recursive method, how does it reverse. It is super clear after watching your video !
@swagatrout3075
@swagatrout3075 9 ай бұрын
thank you man tanks for clarifying the recursion from scratch
@_thingsthatmatter
@_thingsthatmatter 5 ай бұрын
i love youuuu u r thee besttttt teacherrrrrrrr EVERRRRRRRRRRRRR
@FifthArima
@FifthArima 5 ай бұрын
The way he explains sounds like Arnab Goswami highlighting the news ! 😂
@kalpking...4496
@kalpking...4496 9 ай бұрын
understood very much thank you sir
@jeanishverma6898
@jeanishverma6898 8 ай бұрын
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;
@Ammmmmmmman
@Ammmmmmmman 9 ай бұрын
Dry run part was actually brilliant
@prathambhatia3040
@prathambhatia3040 3 ай бұрын
Thanks for that dry run approach
@hiteshsharma9192
@hiteshsharma9192 10 ай бұрын
Broo your way of explaining is awesom👍👍
@AvijitGhosh-o1r
@AvijitGhosh-o1r 3 ай бұрын
Very well explained. Thanks
@mohitparmar01
@mohitparmar01 3 ай бұрын
best explanation ever!
@adharapuramnavaneeth9925
@adharapuramnavaneeth9925 10 ай бұрын
greatest video superb sir !!
@prad2003
@prad2003 5 ай бұрын
best explanation ever
@HemangSinghal-op5ep
@HemangSinghal-op5ep 3 ай бұрын
Awesome Explanation!
@girirajsingh4467
@girirajsingh4467 4 ай бұрын
you are a genius
@knowthrvdo
@knowthrvdo 8 ай бұрын
NICE LECTURE AND PLZ UPLOAD REMAINING LECTURES OF A TO Z SDA SHEET PLZ THEY ARE VERY HELPFULL FOR US
@adebisisheriff159
@adebisisheriff159 9 ай бұрын
Simply the best!!!
@prathameshjadhav2942
@prathameshjadhav2942 10 ай бұрын
Awesome teaching
@pavanKumar-hm7on
@pavanKumar-hm7on 10 ай бұрын
you are our god . thank you soo much
@pankajsunal9819
@pankajsunal9819 9 ай бұрын
thanks for this explanation
@kumarnishantnitallahabad160
@kumarnishantnitallahabad160 5 ай бұрын
Wow great explanation
@saitehith6647
@saitehith6647 8 ай бұрын
Just Brilliant ❤
@ojasviagrawal3180
@ojasviagrawal3180 11 ай бұрын
excellent explanation was just fabbb
@rishu4800
@rishu4800 10 ай бұрын
Amazing explanation
@annapureddyravi4054
@annapureddyravi4054 6 ай бұрын
Bro can you push the code ..The way you explain is very interesting to watch and learn the concepts.
@ManasNandMohan
@ManasNandMohan 11 ай бұрын
So Beautiful , So elegant just looking like a WoW
@lakshayverma6557
@lakshayverma6557 4 ай бұрын
dry run was awesome
@ankithazra2005
@ankithazra2005 4 ай бұрын
you are god
@dhanushkiran-k3j
@dhanushkiran-k3j 11 ай бұрын
Best video explanation
@nuraynasirzade
@nuraynasirzade 6 ай бұрын
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
@romanreigns4235
@romanreigns4235 5 ай бұрын
Same bro
@Arnavfellasleep
@Arnavfellasleep 7 ай бұрын
Understood Will comeback after a month and report where I am.
@codeman3828
@codeman3828 9 ай бұрын
Great video
@banothutharun2743
@banothutharun2743 9 ай бұрын
what a man 👏👏
@ABISHEK-r7k
@ABISHEK-r7k 10 ай бұрын
UNDERSTOOD SIR
@KeerthiTummala296
@KeerthiTummala296 Ай бұрын
🥳💯 percent effective
@instinct1098
@instinct1098 6 ай бұрын
Recursive is damnn good!!
@gauravbanerjee2898
@gauravbanerjee2898 10 ай бұрын
Understood Thanks a lot ❣❣
@amanpratapsingh1981
@amanpratapsingh1981 11 ай бұрын
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.
@sarthakkk8628
@sarthakkk8628 10 ай бұрын
you can find the links on his website whose link is in the description.
@aavashkuikel1341
@aavashkuikel1341 6 ай бұрын
15:00 Recursion Starts
@sibiranganath
@sibiranganath 6 ай бұрын
Recursive approach: 14:50
@YourCodeVerse
@YourCodeVerse 10 ай бұрын
Understood✅🔥🔥
@khalasianiket816
@khalasianiket816 4 ай бұрын
understood ❤
@diptamoy12
@diptamoy12 10 ай бұрын
bhaiyaa app great ho❤❤❤❤
@SomalinBagarty
@SomalinBagarty 6 ай бұрын
Amazing !!!
@manga_mania.
@manga_mania. 11 ай бұрын
Thank you striver😃😃
@s.saranya2486
@s.saranya2486 11 ай бұрын
the BEST💯
@whitedevil2869
@whitedevil2869 3 ай бұрын
In recursive way m..I wrote the same code given above ..... Stack overflow error aa raha hain ....give me soln
@Learnprogramming-q7f
@Learnprogramming-q7f 9 ай бұрын
Thank you bhaiya
@snehashisratna9074
@snehashisratna9074 11 ай бұрын
big fan bhai luv you bhai
@NARUTOUZUMAKI-bk4nx
@NARUTOUZUMAKI-bk4nx 10 ай бұрын
Understooood
@harigs72
@harigs72 2 ай бұрын
What is this benefit of doing in recurssion
@rockstarCoolz
@rockstarCoolz 5 ай бұрын
Thanks 🙏 sir
@ArpanChakraborty-do6yz
@ArpanChakraborty-do6yz 8 ай бұрын
Understand ❤❤
@nishant4595
@nishant4595 2 ай бұрын
the beeesssttttttttt!!!!!
@surayahappy120
@surayahappy120 Жыл бұрын
best best best best ...................................................................
@DeepakPatel-d5v
@DeepakPatel-d5v 7 ай бұрын
Thanks A lot
@bushrahussain3005
@bushrahussain3005 8 ай бұрын
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
@Ashutoshkumar-jx9wk
@Ashutoshkumar-jx9wk 11 ай бұрын
Thanks ❤
@hashcodez757
@hashcodez757 4 ай бұрын
9:45 Take U Forward
@AnuragParoha-ck5ds
@AnuragParoha-ck5ds 7 ай бұрын
understood!!!
@Anime-ub7vs
@Anime-ub7vs 10 ай бұрын
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 ; }
@adithyahegdekota2586
@adithyahegdekota2586 4 ай бұрын
14:!4 The death stare
@codingalley6229
@codingalley6229 4 ай бұрын
🐐
L10. Check if a LinkedList is Palindrome or Not | Multiple Approaches
20:02
L4. Reverse a DLL | Multiple Approaches
18:30
take U forward
Рет қаралды 97 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 133 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,5 МЛН
Pascal Triangle | Finding nCr in minimal time
26:45
take U forward
Рет қаралды 281 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 688 М.
L14. Detect a loop or cycle in LinkedList | With proof and Intuition
20:26
How I Mastered Data Structures and Algorithms in 8 Weeks
15:46
Aman Manazir
Рет қаралды 94 М.
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 487 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 133 МЛН