Reverse Linked List | EP 10
HTML-код
- Опубликовано: 7 фев 2025
- Lecture Notes: leadcoding.in/...
Watch the complete Linked List Series • Linked List Series
Question (codestudio) bit.ly/3Au5wRI
Question (leetcode) leetcode.com/p...
Placement Preparation Roadmap • Roadmaps for Placement
Hi, I am Fraz.
I am Software Engineer working at Curefit and I love teaching.
This is my Channel where I upload content related to Interviews and my personal experiences.
My contact details
Instagram :- / frazmohammad
Connect with me on LinkedIn :- / mohammad-f-bb4886157
Telegram Group t.me/LeadCoding
The best LL concepts ever explained on youtube..
Awesome Notebook Explanations! Loving the series!
Glad you like them! Also please share ❤️🔥
Understood the concept well, I have implemented that and got revised.
Please create a recursion series, if possible
bhai 5--6 video dekh krr aaya recursive solution ki prr kisi ka smj nhi aaya aur idhr bss bilkul easy lga #OP bro #OP video
Bhaiya full support idhar tk aagya !!!!!!!!!!!!!!!!!!! great video !!!!!!!!!!!!
Gurudev 🙏🙏 aap aane vaale No1 educator banne vaale ho youtube pr koi baat nhi views kam h leakin yeh he millions mai badal jyege jis tarah ka content aapne banaya hai na yeh na toh kisi paid course mai h or na he kisi youtube channel pr heads off to you 🙏🙏 pls make complete series of DSA 🔥🔥
Thank you so much ❤️
finally my code executed for reversing a linked list. Thank you
The best part was......Recursion named Bechaara!!
Bhai Bdhia Smjh aagya
Bhai sahabbb!!!!!!!!!!!!!!
Next level explanation!!!!!!!!!!!!!!!!!!
just op💙❤
we can achieve it in the below way as well in c#
if(head==null) return head;
if(head.next==null) return head;
var last=ReverseList(head.next);
head. next.next=head;
head.next=null;
return last;
fraz bhai kya mast samjhate ho aap.. Thanks .
bahut takleef hoti hai jab aap yogya ho aur log aapki yogyata na pehchane bhaiya bhut accha samjaya hai
very well explained bro, difficulty faces before seeing ur vedio, but after seeing video full cleared, thanks bro keep it up. bro linked list pe jayada se jyada interview question laate rehna, best of luck bro.....
Amazing Content bhaiya , It will Definitely help us , and please mention type of questions will be asked on this topics too which will build us, thank you bhiaya
bhaiya bhut faadu revision krware aap !!!!! ❤️❤️
lets gooo
finally learned the concept
thanks for wonderful explanation
☺☺
thanks for the playlist helpful.
badia hai bhai
Thankyou bhaiya for this session
Thank you very much. You are a genius.
21:18 TRUE THAT..👏👏
great explanation of the recursive approach.
Glad you liked it!
hustle 100% thankyou sir
Great bhaiya
You hit the right nerve to explain these typical things! Great 👏
Wowww this is amazing pls make more videis
please make a video on vectors
Thank you bhaiya 😇
Thank you🙏
Thank You so much sir❤
Completed this lecture😊
Most welcome 😊 .
Maza aagya bhai❤️❤️
Mind blowing
bhai aise hi series bas tough ones p bna do 1 liknklist 2 trtee 3 graph smjh aayega
great, learned a lot from this series
please make a recursion series it would be great please make one
Yes sure
Please make it in English version 👍
Thanks for the efforts!!
Love you bhaiya 😍
❤️❤️ Keep sharing and coding
hatsoff! sir
Thank You So Much Bhaiya❤
Completed this lecture😊
Amazing work. Next part will be out soon.
recursion series please!!!!
Bhaiya please time complexity ka video banao specially backtracking and recursion questions ke liye...
best explanation 😃
Thanks for your comments Nadeem
@@mohammadfraz you deserve it bhaiya
bhaiya please make a series of graph
and array
🙏🙏🙏🙏
thanks so much
welcome Kunal
Lect - 12 completed, sir love♥️ the way you explain each and every concept, please keep creating such wonderful content 💯 your playlist are helping me alot in understanding the topics and improving my skills.
Thankyou bhaiya ♥️
bhaiyaa recursion pr series le hi aao bhaiyaa
nice explaination bhaiya😇
Thanks Iklaq, share krdena
👍
bro your explaination is nice but i have a doubt, In recursion method u wrote head->next=NULL but while back tracking how this null moves.
1-> 2-> 3-> 4 suppose this is given linked list
just before hitting base condition we are at 3 that is current head is 3
the recursion call return new head as 4
so we do head.next.next = head i.e 1->2-> 3 2
RECURSIVE SOL WITHOUT BACKTRACKING
class Solution {
public ListNode reverseList(ListNode head) {
return reverse(head, null);
}
private ListNode reverse(ListNode cur, ListNode prev){
if(cur == null)
return prev;
ListNode temp = cur.next;
cur.next = prev;
return reverse(temp, cur);
}
}
good content
Thanks a lot
nice
💥💗
fraz bhai kya hum p++ , c++ & n++ nhi kr skte ?
ep 10 done
Reach++🔥
How you write this in your ipad can you show you in one video please
great video ! What tool / tablet are you using to draw the picture ?
ipad and apple pencil
If int is allocated 2 bits in the system, what will be the output of 12
watching at 4:51 AM :)
bhaiya please start tree series before dp pls bhaiya
bhai sari playlist me vedio ke wrapper me 1-2-3-4 dal do please same as linkledin to sequence me smjh aayega even in all playlits saree me , wrna pura sequence bigad jata and smjh nahi ata
bhaiya recursion next !!!!!!! 🥺🥺🥺
11:50
bhai me
current, current->next me confuse ho jaata hu har baar....
RECURSIVE SOLUTION WITHOUT BACKTRACKING
class Solution {
public ListNode reverseList(ListNode head) {
return reverse(head, null);
}
private ListNode reverse(ListNode cur, ListNode prev){
if(cur == null)
return prev;
ListNode temp = cur.next;
cur.next = prev;
return reverse(temp, cur);
}
}
😍😍😍
completed.
Will give more soon
bhaiya pls recurrsion pe series bana loooooooooooooooooooooooooooooooooooooooooooooo
Keep going bro! 🔥
Thanks, keep supporting 🔥❤️
@@mohammadfraz Definitely bhai 💙
Bhaiya recursive Aproach samjh me nhi aya head next next wala nhi aya samjh me ...?
Please make videos in English 👍
Please make videos using JAVA
There isnt much difference
recursion ulta kaise kr raha h linkedlist koi smj dega
'
ya fir ek kam kar doge ek ya do conceptual vedios playlist of topics me dal do and sequence bnwa do playlist ka vedio k wrapper me number dal ke jaise linklist me kia so we s ee sequence wrna dimag khrab ho jata bhaio. ek ya do introduction vedio dal do , playlist koi bhi pura seuqnece me bna do, existing me change kr ke jese wrapper me numbert dal do
reach ++
Using recursion, my code took 0 ms.
Fraz >>>> Striver
🤣🤣🤣nice joke iam not hater of faraz but stiver's teaching ,method is far better than whole indian coder community
fraz bro....extremely dissappointed...none of ur codes are running on leetcode...sorry
Keep practicing and don't get demotivated.
I came up with 4 video previously on this concept.... finally got the perfect video to understand this concept ❤️... superb 🤌🏻