L13. Find the middle element of the LinkedList | Multiple Approaches

Problem Link: tinyurl.com/ykfyj5cd
Entire LL Sheet: takeuforward.org/linked-list/...
Check our A2Z DSA Course: takeuforward.org/strivers-a2z...
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/takeuforward

Пікірлер: 53

  • @yashsherekar7148
    @yashsherekar71487 ай бұрын

    please make similar playlist on string data structure with such vast variety

  • @BhanuPratapSinghRajawat-iz2tf
    @BhanuPratapSinghRajawat-iz2tf8 ай бұрын

    at 12:51 in pseudo code of tortoise and hare algo fast should move two step just telling so that no one confuses else am not that capable that i can find out ur mistakes

  • @user-ns7tu5no1i

    @user-ns7tu5no1i

    2 ай бұрын

    you re right i came to comment this out but you ve done it much before i m going to

  • @randalthor69

    @randalthor69

    Күн бұрын

    chill dude nobody's thinking that

  • @Rahulkumar-cg8rh
    @Rahulkumar-cg8rh2 ай бұрын

    at 12:53, just correct fast as fast = fast->next->next, rest is aweasome .......

  • @dogwoofwoof8154
    @dogwoofwoof81542 ай бұрын

    slow and fast pointer concept was awesome

  • @KartikeyTT
    @KartikeyTT3 ай бұрын

    Bro this video deserves a lot more that just 844 likes. Everyone please do your part.

  • @trailblazer555
    @trailblazer5554 ай бұрын

    Understood well..Thanks Striver!!!

  • @parul8334
    @parul83348 ай бұрын

    Love u sir 💕 thanks for ur efforts 💓 please keep it up , u are very intelligent 🤓

  • @hareshnayak7302
    @hareshnayak73023 ай бұрын

    Understood, Thanks striver for thia amazing video.

  • @selene8721
    @selene87213 ай бұрын

    Thank you so much striver!!

  • @nirajchanekar
    @nirajchanekar4 ай бұрын

    love u brother, Great Explanation ❤

  • @ddevarapaga5134
    @ddevarapaga513415 күн бұрын

    Understood bhai Thank you

  • @shrutishukla6336
    @shrutishukla63363 ай бұрын

    Amazing Explanation.

  • @CS-RubavathyMR
    @CS-RubavathyMR5 ай бұрын

    your explanation is great for understanding the problem. Thank you bro❤

  • @anuplohar23
    @anuplohar235 ай бұрын

    Great Explanation ❤

  • @vattiyeshwanth282
    @vattiyeshwanth2822 ай бұрын

    is it ok? to not come up with the optimal solution , but understood very well after learning.

  • @ssss1234aaaa
    @ssss1234aaaa6 ай бұрын

    Please make playlist on string very much needed.

  • @_CodeLifeChronicles_
    @_CodeLifeChronicles_2 ай бұрын

    great explanation

  • @user-ke7fs7ds6h
    @user-ke7fs7ds6h7 ай бұрын

    awesome content

  • @user-tk2vg5jt3l
    @user-tk2vg5jt3l5 ай бұрын

    Thank you bhaiya

  • @vinaynegi8454
    @vinaynegi84546 күн бұрын

    love you bro ,

  • @user-dv1ts9db8i
    @user-dv1ts9db8i6 ай бұрын

    UNDERSTOOD SIR

  • @knowthrvdo
    @knowthrvdo5 ай бұрын

    NICE LECTURE AND PLZ UPLOAD REMAINING LECTURES OF A TO Z SDA SHEET PLZ THEY ARE VERY HELPFULL FOR US

  • @user-or5oz1pk2x
    @user-or5oz1pk2x3 ай бұрын

    Thanks a lot

  • @YourCodeVerse
    @YourCodeVerse6 ай бұрын

    Understood✅🔥🔥

  • @Deena_Bandhu
    @Deena_Bandhu7 ай бұрын

    rhank you bhayya

  • @084abhigna_y8
    @084abhigna_y84 ай бұрын

    Thnak you

  • @NARUTOUZUMAKI-bk4nx
    @NARUTOUZUMAKI-bk4nx6 ай бұрын

    Understooood

  • @malaykhakhar
    @malaykhakhar6 ай бұрын

    Great

  • @priyotoshsahaThePowerOf23
    @priyotoshsahaThePowerOf2315 күн бұрын

    Striver , at 12:49 please change it to fast->next->next;

  • @harshitjaiswal9439
    @harshitjaiswal94396 ай бұрын

    understood.

  • @MJBZG
    @MJBZG22 күн бұрын

    good algo

  • @rushidesai2836
    @rushidesai28363 ай бұрын

    Nice

  • @codeman3828
    @codeman38286 ай бұрын

    Understood

  • @rockstarCoolz
    @rockstarCoolzАй бұрын

    Sir in both we can do n/2 ...and point front=temp->next

  • @abhinanda7049
    @abhinanda70494 ай бұрын

    understood

  • @Adarsh_agrahari
    @Adarsh_agrahari3 ай бұрын

    Today i give the same sol in the class

  • @therealartist9
    @therealartist96 ай бұрын

    can someone pls write the code for the fast and slow logic in vs code i am completely unable to write that logic in the vs code

  • @swapnilpawar8487

    @swapnilpawar8487

    5 ай бұрын

    #include using namespace std; class Node{ public: int data; Node* next; }; class linkedList{ public: Node* head; linkedList(){ head=nullptr; } void append(int data){ Node* newNode =new Node(); newNode->data=data; newNode->next=nullptr; if(head==nullptr) head=newNode; else{ Node* p=head; while(p->next !=nullptr){ p=p->next; } p->next=newNode; } } Node* middleNode(){ Node* slow=head; Node* fast=head; while(fast != nullptr && fast->next != nullptr){ slow = slow->next; fast= fast->next->next; } return slow; } }; int main(){ int A[]={12,43,23,86,64,3,56,7,577,10}; int n=sizeof(A)/sizeof(A[0]); linkedList MyList; for(int i=0;i

  • @iamnoob7593
    @iamnoob75934 ай бұрын

    US

  • @kalabanki4865
    @kalabanki48658 ай бұрын

    I'm a final year student should I follow sde a-z sheet as a beginner reply me

  • @arundhatipatil457

    @arundhatipatil457

    8 ай бұрын

    first learn c++ then tcs striver sheet and then follow a to z sheet

  • @harshpalsingh1145

    @harshpalsingh1145

    7 ай бұрын

    It matters on your capabilities as well. If you feel a-z sheet is comfortable then follow it otherwise do easier sheets first. Also learning a language like cpp or java and learning DSA are two different things. Give importance to both and yes you can do both side by side.

  • @cenacr007
    @cenacr0074 ай бұрын

    us

  • @bottunaveen4902
    @bottunaveen49024 ай бұрын

    Great Explanation ❤

  • @himanshidafouty347
    @himanshidafouty347Ай бұрын

    Understood

  • @ashishpradhan6250
    @ashishpradhan6250Ай бұрын

    understood

  • @abhishekprasad010
    @abhishekprasad0102 ай бұрын

    Understood

  • @dewanandkumar8589
    @dewanandkumar85892 ай бұрын

    Understood

  • @VibhaJamadagni-hz6ck
    @VibhaJamadagni-hz6ckАй бұрын

    understood

  • @SibiRanganathL
    @SibiRanganathL3 ай бұрын

    Understood

  • @chiragbansod8252
    @chiragbansod82524 ай бұрын

    understood