17:21 "And the interviewer will hire you,no worry" best part🤑🤑🥰🥰
@Thunder976545 ай бұрын
😂
@aanandshuklaАй бұрын
😅
@PCCOERCoderКүн бұрын
😂😂
@qihse1531 Жыл бұрын
This simple problem is insanely hard to me...thank you Striver!!
@keshavchoudhary885710 ай бұрын
this type of great content cannot be found elsewhere , Excellent!!!
@AlwaysOntopoftheworld10 ай бұрын
Is kunal kushwaha better or this one?
@Ayush372629 ай бұрын
@@AlwaysOntopoftheworldI think Striver, Kunal is more into Controversies
@FaizShaikh-dt8wp2 ай бұрын
You are really doing a revolutionary thing 🔥, Belive me you will definately going to have a huge audience just keep doing striver! Complete the DSA series from A to Z 🔥 before 2024 ends.
@AmanSharma-xy1qm11 ай бұрын
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.
@vaibhavvm414710 ай бұрын
Bro how do u approach DSA, do u first watch videos and then solve it on ur own or how?
@AmanSharma-xy1qm10 ай бұрын
initially, i learn first the therory part like methods that are used in this, and i usually watch Striver's playlist of that topic , and learn the patterns of the questions then i go to leetcode and gfg and solve same patterns problems. With the approaches i learned from Striver. That's all. Hope you got this.@@vaibhavvm4147
@Rahul_Mongia8 ай бұрын
@@vaibhavvm4147 video dekh le bhai, dimag khol......., phir related ques khud try kar
@harshitgarg2820 Жыл бұрын
Loved your dedication sir, completed this ques and loving this series like all others. Top-tier content🔥🔥
@MdallShahria Жыл бұрын
you are the boss .. please make a playlist about competitive programming.
@shubhamanand85578 ай бұрын
It really helps me to understand in a very easy manner. Thanks a lot bhaiya.
@Sunny-hg5oe7 ай бұрын
Great thought of using the stacks!!!!
@aravindsagar94336 ай бұрын
instead of using next ad back which is a bit ambiguous you could've used next and previous ( prev ) which will be more understandable
@itsorcus6494 ай бұрын
🤓
@BeWarrior-dw4br10 ай бұрын
The takeuforward website is not loading .. I'm trying to access the A2Z sheet for the last three days but it is not working.
@guneeshvats465 ай бұрын
Dude your lectures are amazing
@PCCOERCoderКүн бұрын
Lecture successfully completed on 26/11/2024 🔥🔥
@RRR-qv1so Жыл бұрын
Thank you for this amazing playlist bhaiya ❤❤
@shanipratapsingh9164 ай бұрын
Thank you sir this amazing lecture 🥰
@Vvvvviieiei123 Жыл бұрын
lecture 4 done,love u bhaiya
@ankit-jangid11 ай бұрын
nice explanation brother, 1 thing I'd like to advice is please use the same variable names while coding which you use while explaining, it would be helpful. Good work and your videos are great!!✌🏻😇 thanks
@lifehustlers16411 ай бұрын
17:20 , dream come true!!!
@aashwinkumar22422 ай бұрын
i guess there is an even more optimised solution now since the link is showing time limit exceeded in this approach . i did everything the same
yup thats what i did , made it much simple to understand you have to return temp->prev
@karthik-varma-15794 ай бұрын
i taught of doing same approach. of changing and head and swap its pointers
@shivamsays2861Ай бұрын
Nice videos thankyou
@pratyushtripathi172810 ай бұрын
Understood 😊
@oyeesharme4 ай бұрын
thanks bhaiya for your efforts
@adebisisheriff1599 ай бұрын
Thanks Striver!!!
@AkashGautam-k2u8 ай бұрын
Thank You Bhaiya.
@tle9645 ай бұрын
nice video
@saitejanedunoori54515 ай бұрын
great work and thank you !
@DeadPoolx17122 ай бұрын
UNDERSTOOD;
@TON-10810 ай бұрын
Understood!!! Thank You.......
@chetashreejagtap758511 ай бұрын
thank you striver👍👍
@NazeerBashaShaik7 ай бұрын
Understood, thank you.
@striverdaaadi10 ай бұрын
striver is best
@RajNamdev_193 ай бұрын
Understood ;)
@nishant45952 ай бұрын
the best!!!!
@gourabrajak81329 ай бұрын
👍😊
@YourCodeVerse10 ай бұрын
Understood✅🔥🔥
@sumitworld9186 ай бұрын
Undertood 😌
@charuprabha96964 ай бұрын
@Ergoswami7 ай бұрын
Completed!
@artcodetravel10 ай бұрын
If we point the head to last node, the behaviour would be same as revered doubly Linked list right??? Why do we need to do these processing???
@techwithsam43024 ай бұрын
In that case we can't traverse in the forward direction instead we have to go backward to traverse!!
@khalasianiket8164 ай бұрын
understood ❤
@subee128 Жыл бұрын
Thanks
@ThakurIsGeek10 ай бұрын
nice
@firebout76758 ай бұрын
understood
@MohitKumar-o3l1u5 ай бұрын
Understood !!
@abhishekprasad0106 ай бұрын
Understood!
@Zomb-zj4ip5 ай бұрын
understooooooooooooood
@rizonkumarrahi Жыл бұрын
Great
@XS_014 ай бұрын
i just swapped the data values, using two pointers as head and tail.
@harshuke5831 Жыл бұрын
Understood
@r_uhi057 ай бұрын
understood!
@YashGaneriwal-je6rh3 ай бұрын
done
@ronakvaghela27143 ай бұрын
@UjjwalMishra-xf9un5 ай бұрын
why this code is not working,, its all same just using one extra variable; Node* reverseDLL(Node* head) { if(head==nullptr || head->next==nullptr)return head; Node * current=head; Node *back=nullptr; Node *front=nullptr; Node *temp=nullptr; while(current){ back=current->prev; front=current->next; temp=back; back=front; front=temp; current=current->prev; } return back->prev; }
@harshitjaiswal943910 ай бұрын
🔥🔥🔥
@varun101710 ай бұрын
why this is correct and last=curr->prev; curr->prev=curr->next; curr->next=last; this is not working? last=curr->next; curr->next=curr->prev; curr->prev=last;
@kartikeygupta59983 ай бұрын
can we exchange head with with tail and tail with head
@vishious149 ай бұрын
My approach looks something like this: Publlic class Solution{ public static Node reverseDLL(Node head) { Node p=null,curr=null,f=head; while(f!=null){ p = curr; curr = f; f=f.next; curr.next = p; if(p!=null) p.prev = curr; } head = curr; return head; } }
@TarunKumar-km5ps9 ай бұрын
👌👌👌👌👌👌👌👌👌👌👌👌
@AkashKumarTiwary-u4b6 ай бұрын
god
@shalinikumari6050Ай бұрын
understood 29 sep 2024
@himanshukaushik922310 ай бұрын
Bhaiya 0(1) ma bhi solution hai kya iska ??
@vedikamishra0093 күн бұрын
traverse toh krna hee h, so no O(1)
@AyushRawat-v8m5 ай бұрын
class Solution { public: Node* reverseDLL(Node * head) { if(head == NULL || head->next == NULL) { return head; } Node* pichli = head; while(head->next != NULL) { pichli = head; head = head -> next; } Node*mover = head; mover->next = pichli; mover->prev = NULL; Node*back = mover; mover = mover->next; pichli = pichli->prev; while(pichli != NULL) { mover->prev = back; mover->next = pichli; back = mover; mover = mover->next; pichli = pichli->prev; } mover->next = NULL; mover->prev = back; return head; } }; this is i ve done but ur one is more intutive and easy also