Linked List in C++ - Part 1 | Lecture 50 | C++ and DSA Foundation Course

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 155

  • @pranavpahuja2236
    @pranavpahuja2236 10 місяців тому +23

    was struggling with LL for more than a week..but came across this best lecture on LL❤❤..now pretty confident for exams....thank you maam❤❤

  • @janmejaysahu9011
    @janmejaysahu9011 Рік тому +60

    For supporting team i would highly recommend to please add the all videos of the c++ DSA foundation course in playlist❤

  • @akash2700
    @akash2700 10 місяців тому +11

    1:55:27 Leetcode(206) - Reversing a linked list

  • @Urwa410
    @Urwa410 6 місяців тому +7

    Ma'am your way of teaching is just brilliant.

  • @solarsystem9156
    @solarsystem9156 3 місяці тому +2

    GUYS A SMALL UPDATE IN LAST QUES.
    IF K=4, ANSWER MUST BE: 4->3->2->1->5->6 *, as we have rotate K nodes only.
    So what y'all can do is:
    Node* check = head;
    int len = 0;
    while(check!=NULL){
    check = check->next;
    len++;
    if(len==k) break;
    }
    if(len

  • @LearnerAbhi21
    @LearnerAbhi21 Рік тому +20

    I got this finally!! Linked List is HARD to learn but its interesting to do operations on it .... many many Thanks to Urvi mam !!😇❣

    • @LearnerAbhi21
      @LearnerAbhi21 3 місяці тому +6

      here I am again on this video, after forgetting everything what i learnt 1 year before in April 2023.... Guys plz don't take any break during DSA journey, you will forget everything, and phir se track pr aane ke liye bhi bahot himmat aur mehnat lagti hai!🙏🙏🙏!(17 May 2024)

  • @mihirkumar4770
    @mihirkumar4770 Рік тому +22

    your way of teaching is just brilliant. Harder the topic easier you make for us. Thanks a lot for this quality content.

    • @user-ft5qo5xp2o
      @user-ft5qo5xp2o 3 місяці тому

      iske notes h aapke pass agr h to pls share kr dijiye

  • @samruddhipaiyawal5586
    @samruddhipaiyawal5586 6 місяців тому +2

    nice work on explaining the whole thing, your's is the first video where i did not get confused after watching it

  • @AbhinavSingh-up7bl
    @AbhinavSingh-up7bl 11 місяців тому +5

    1:10:50
    Thanks to you i was able to do it in less than 15 min
    void solve(Node* &head) {
    Node* temp = head;
    while(temp != NULL) {
    Node* dele = temp;
    dele = dele->next;
    temp->next = dele->next;
    free(dele);
    temp = temp->next;
    }
    }

  • @rahulrai7626
    @rahulrai7626 9 місяців тому +6

    best video for linked list in youtube❤❤❤❤

  • @vikk643
    @vikk643 2 місяці тому +2

    Thankyou you mam for teaching dsa in easily ❤

  • @udupa...5709
    @udupa...5709 18 днів тому

    you r really the best!!!! I have searched almost all the platforms and I got one or the other prblm u r the best among all !!! Thank you💗

  • @keshavmehra2177
    @keshavmehra2177 9 місяців тому +3

    Thanks a lot mem👍...your explanation is very helpful to me....

  • @lakshyagupta9435
    @lakshyagupta9435 11 місяців тому +4

    One of the best lectures on the linked list I have ever come across.

  • @ahmedali3017
    @ahmedali3017 Рік тому +4

    I highly appreciate you.
    The way of teaching is very effective.

  • @AnkitaDebnath-ez2jq
    @AnkitaDebnath-ez2jq 26 днів тому

    Thanks a lot mam for giving us such an amazing lecture which helps us to learn about this topic from depth

  • @DownShifteroffical
    @DownShifteroffical Рік тому +4

    Well explained. I was struggling to understand LL . but after watching this session it clear my all doubts.

  • @LionelMessi5339-e2b
    @LionelMessi5339-e2b 5 місяців тому +1

    very Impressive ! I really enjoyed learning from your videos.

  • @amarjeet8120
    @amarjeet8120 Рік тому +8

    Please mam don't compromise the quality of content we are following from the 1st now you sumup all these contents in one series please sir try to cover all the topics we are following from the starting.

  • @kalashsingh8140
    @kalashsingh8140 8 місяців тому +3

    smooth....very grateful to u mam😍😍😍

  • @kartikeykumar6165
    @kartikeykumar6165 10 місяців тому +6

    mam apne dynamic memory allocation padhaye bina pura linked list padha diya
    bina dynamic memory allocation k kisi ko kuch samajh nhi ayga ki kya chl rha hai

    • @neverstoplearning3451
      @neverstoplearning3451 9 місяців тому

      Hii bhai vo kaha se sikhe ?? Muje ye pointers kaise use kiye is tarike se ye nahi samaj aaya itna pointers pata hai par itna deep me nahi samaj aaya

    • @kartikeykumar6165
      @kartikeykumar6165 9 місяців тому

      bhai me recommend krunga ki tum double pointers aur pass by reference ache se sikh lo
      aur dynamic memory allocation aur oops codeHelp se sikh lena@@neverstoplearning3451

  • @dhiraj6727
    @dhiraj6727 12 днів тому

    Humare college ke DSA ke professor sikhate toh kuch nahi hai lekin agar DSA ka program likhte nhi aaya toh attendance kaat dete hai. Nahi toh basic se start karta tha. Professor ne toh OOPS bhi nahi padhaya, Stack and Queue ke baad sidha Linked List sikhaya voh bhi ussi ko pata kya bag bag karte rehta hai. Nice lecture.

  • @himalayadebbarma-we4pt
    @himalayadebbarma-we4pt Місяць тому +1

    last question is a leetcode hard version Actually maam taught it soo easily

  • @RahulKumar-md5ml
    @RahulKumar-md5ml 9 місяців тому +2

    Where shall I find pdf of this lecture?

  • @prathmeshmore1033
    @prathmeshmore1033 5 місяців тому +2

    What is the base case for reversing k nodes In last recursive code?

  • @tanishjotbrar8862
    @tanishjotbrar8862 Рік тому +3

    mam genuinly u r so gud ...its my first tym comin to ur channel nd for sure not the last..

  • @mercilessgoku4334
    @mercilessgoku4334 Місяць тому +2

    The link for notes is not working

  • @nishithkotak5002
    @nishithkotak5002 2 місяці тому

    Hello, thanks for the wonderful explanation. Can you plz provide with the notes and code of the playlist for the learning purpose. Thanks

  • @nomankhan8978
    @nomankhan8978 11 днів тому

    thank you

  • @anjaliChaudhary-tu1cd
    @anjaliChaudhary-tu1cd 2 місяці тому +1

    Newhead will be passing means new head will be returning that's why we are using node *????

  • @Batmanishere1243
    @Batmanishere1243 10 місяців тому +4

    Please make the notes accessible
    We can't access them it shows some errors...

  • @Breathing_beats
    @Breathing_beats 4 місяці тому +1

    thanks a lot

  • @mustafakhan7495
    @mustafakhan7495 6 днів тому

    Mam the notes is not accessible kindly if you provide the notes link for this link list chapter

  • @shivamjha8985
    @shivamjha8985 Рік тому +2

    Ma'am there is one thing for sure that because of this One shot thing the practice question have not been provided on the site and also The playlist for C++ course has not been updated yet. I have been trying to reach out for this for days now and haven't received some solution. And the assignments which are on the site are even not granting us access so please get it checked and do upload assignments so that we could practice regularly.

  • @pandeynikhilone
    @pandeynikhilone 5 місяців тому +1

    My fav DS is BST!!

  • @PankajSingh-rc1pr
    @PankajSingh-rc1pr Рік тому +2

    Feeling Blessed Thank You MAM🤩

  • @akash2700
    @akash2700 10 місяців тому

    need some correction in the last problem for ex [1,2,3,4,5] and k=3 output should be [3,2,1,4,5] but it is returning [3,2,1,5,4]

  • @mukulbassi4920
    @mukulbassi4920 3 місяці тому

    was searching for a good explanation found this, i took 3 days to properly watch and make codes on my own. Gotta say this really helped thank you so much.

  • @57-ajityadav46
    @57-ajityadav46 4 місяці тому +1

    31:35 head ka pointer change karne kai liye head = new_node; kiya hai

  • @OSAMAKHAN-ek6cn
    @OSAMAKHAN-ek6cn 4 місяці тому

    maam apki tree data structure ka playlist hai?

  • @Nikhilgupta-mc9kc
    @Nikhilgupta-mc9kc 4 місяці тому

    Thank you mam ❤❤

  • @akhilsinghrajput8100
    @akhilsinghrajput8100 Рік тому +12

    Plz provide 1 hr lecture topic wise , don't do that sum up in one lecture
    Till 47 lectures content is top class but now quality has been compromised 😕😕

  • @soothinghumms7019
    @soothinghumms7019 22 дні тому

    anyone please confirm or tell me if i am wrong can we declare the function as a part of node class (public)??
    and not write it outside the function

  • @user-ft5qo5xp2o
    @user-ft5qo5xp2o 3 місяці тому

    Mam i can't find notes of this lecture

  • @priyankapatidar_CS
    @priyankapatidar_CS Рік тому +3

    Yess mam we want a next some videos of binary tree, heap, graph, greedy algo and some other important topics of DSA plss mam I would highly recommend pls add some next videos. Thank you so much for deep explaination❤️💯

  • @foolmasti117
    @foolmasti117 28 днів тому +1

    maam aaap thoda dryrun karke bhi dekhaeye tab samagh aayega

  • @vanced5328
    @vanced5328 Рік тому +3

    Please make a video on TCS NQT 2023 test.
    How to prepare?
    What to read?
    Where to practice?
    How much coding is required?
    What is the smart way to practice test within short time?

  • @RelaxingMusic-ts9xx
    @RelaxingMusic-ts9xx 10 місяців тому +1

    it will gives me an errror while i accessing Notes

  • @ManasMotghare
    @ManasMotghare 18 днів тому

    8:57

  • @UPEShahidAnawarMamud-km6mh
    @UPEShahidAnawarMamud-km6mh Рік тому +3

    Didi Thanks 🥰

  • @HassanMedia-jp8fr
    @HassanMedia-jp8fr 6 місяців тому

    lots of respect from Pakistan maam

  • @aroranikunj277
    @aroranikunj277 Рік тому +1

    1:27:51 But why not current->next = temp->next??? 🚨⚠️

  • @AkashSharma-qg7ex
    @AkashSharma-qg7ex Рік тому +1

    Guys.. pls tell me how can I get the notes of this lecture and all previous lectures

  • @debarghyakundu908
    @debarghyakundu908 10 місяців тому +1

    pls share the code mam

  • @ieroo3773
    @ieroo3773 10 місяців тому

    can you run translation

  • @samriddharoychowdhury2599
    @samriddharoychowdhury2599 5 місяців тому

    great

  • @OSAMAKHAN-ek6cn
    @OSAMAKHAN-ek6cn 6 місяців тому

    hello ma'am , can you provide us this code

  • @gaurangaggarwal6464
    @gaurangaggarwal6464 2 місяці тому

    what is the use of arrow in coding???

  • @lakshmanlomisa7375
    @lakshmanlomisa7375 Рік тому +2

    one word for you -"thank you"

    • @SohelDarwajkar
      @SohelDarwajkar 11 місяців тому

      Arigato Guzaimasu will be more suitable 😊

  • @aesthetic._.rohit_
    @aesthetic._.rohit_ 8 місяців тому +4

    JO AATA THA VO BHI BHUL GAYA 👍

  • @rohansaini1530
    @rohansaini1530 Рік тому +1

    Aaj pw ka app and PW skills ki site nhi chl rhi

  • @hq.i
    @hq.i 4 місяці тому

    2:20:53

  • @Abhishek-qx9zg
    @Abhishek-qx9zg 10 місяців тому

    2:45:16 ❤❤❤

  • @anisharajput6871
    @anisharajput6871 Рік тому +1

    But in the function insertAtHead it gives an error can't convert node*to int in assignment new_node = head

  • @foolmasti117
    @foolmasti117 20 днів тому

    kth node qt atime wala samagh nahi aaya raghav sir ko bolao woo badeya samjhate hai

  • @ArGha03
    @ArGha03 11 місяців тому

    41:58

  • @kk-nm5zz
    @kk-nm5zz Рік тому

    Mam mujhe plz reply karo
    Mai decode batch login nhi ho raha h
    Maine subscribe ker liya h please
    Batch update ho raha h kya🙏

  • @Tanjirou7781
    @Tanjirou7781 Місяць тому

    Can anyone send me this video's codes please ??

  • @harshityadav8852
    @harshityadav8852 2 місяці тому +1

    bhai line by line explain to kardo likhte time code .. line 18 mei kyu kia hai aisa ye sab kaun btaega?? ye to wohi smajh skta hai jisne 2-4 baar pehle se padha ho ye topic.

    • @sparshsingh7543
      @sparshsingh7543 2 місяці тому +2

      maam bas apna padha rhi hain , isme itne sare cheezen hain jo pehle ke lectures me shi se explain bhi nhi kra

  • @rohansaini1530
    @rohansaini1530 Рік тому +1

    Mam please upload video regularly

  • @kartikgarg4742
    @kartikgarg4742 Рік тому +1

    mam please upload the notes of the lecture

  • @vishalsharma4799
    @vishalsharma4799 Рік тому +3

    Please continue java dsa series it's been more than a month but no video uploaded yet

  • @AbhinavSingh-up7bl
    @AbhinavSingh-up7bl 11 місяців тому +1

    40:00 if you have not insert any element into head and your head is NULL and you are trying to do same as she did you will get error so instead of doing that add this on insertAtTail() if(head == NULL) head = new_node; and put everything along temp inside else ,,, reason :: she inserted element while teaching insertAtHead so her head was not NULL...

  • @anmolkumar01
    @anmolkumar01 Рік тому +1

    1:28:38 - exactly same code for deleteAlternateNodes is showing segmentation fault in vs code (in pw labs) , i have checked the code but it is same , it is now showing segmentation fault on removing curr_node != Null from while condition ...
    Anyone ..? who can help...?

    • @hiteshsharma5034
      @hiteshsharma5034 Рік тому

      void deletealternative(Node* &head){
      Node* temp=head;
      while(temp->next!=NULL){ //1->2->3->4->null
      Node *garbage=temp->next;
      temp->next=temp->next->next;
      free(garbage);
      temp=temp->next;
      }

      } Try this in your compiler, its working fine if even no. of elements are in list.

  • @randomsmile7066
    @randomsmile7066 Рік тому

    Sir main kal se pw skill mein log in nhi kar pa Raha hoon.
    Mere video backlog increase ho raha hai please resolve my problem.

  • @janmejaysahu9011
    @janmejaysahu9011 Рік тому +2

    Java mai jese 5 hours ki interview questions upload kiye ho bas c++ mai vi usi questions ko chod ke baki Jo leet Code mai linkedlist ki questions hai us upar eka video bana dije mama

  • @paragjain6165
    @paragjain6165 Рік тому

    While inserting a node at last in an empty node at 40:43 the code is not working in vs code

    • @AbhinavSingh-up7bl
      @AbhinavSingh-up7bl 11 місяців тому

      40:00 if you have not insert any element into head and your head is NULL and you are trying to do same as she did you will get error so instead of doing that add this on insertAtTail() if(head == NULL) head = new_node; and put everything along temp inside else ,,, reason :: she inserted element while teaching insertAtHead so her head was not NULL...

  • @ranvirvlog887
    @ranvirvlog887 Рік тому +2

    mam please video regular upload ki geya

  • @adityabharti1826
    @adityabharti1826 Рік тому +5

    ma'am made a movie on linked list😆😆

  • @bonkai.movies
    @bonkai.movies Рік тому +4

    Long Time awaited🥱🙏

  • @ramanshrivastava1407
    @ramanshrivastava1407 Рік тому +4

    Aur kitne topic bache hai🤯

    • @goblinftw8428
      @goblinftw8428 Рік тому +1

      tree , graph , stacks , queue etc

    • @godson200
      @godson200 Рік тому +2

      Bhay DSA hai.
      Data structures
      1. Array
      2. Linked List
      3. Stack
      4. Queue
      5. Binary Tree
      6. Special Trees
      7. Graph
      8. Heap
      9. Tries
      10. Miscellaneous
      Algorithm
      1. Divide and Conquer
      2. Greedy Method
      3. Branch and Bound
      4. Backtracking
      5. String Algorithm and KMP matching
      6. Graph Algorithms
      7. Miscellaneous.
      Har kisi ka 3-4 ghante ka video banna chahiye approx.

    • @ramanshrivastava1407
      @ramanshrivastava1407 Рік тому

      @@godson200 bhot time lgega bhai kyuki video bhut slow upload ho rhi hai

    • @godson200
      @godson200 Рік тому +2

      @@ramanshrivastava1407 6 mahine kaha tha naa.
      DSA yaar ek baar karna chahiye lekin shaanti se.
      Ek accha course banane m 1-1.5 year lag jayega lekin wo for the ages rehna chahiye.
      Ye patience naa students mein hai na teachers mein hai.
      Toh ab yehi mediocre content se kaam chalana pahdega

    • @ramanshrivastava1407
      @ramanshrivastava1407 Рік тому +2

      @@godson200 🙏🙏offline soch rha hu ab

  • @bidhanchakraborty3783
    @bidhanchakraborty3783 11 місяців тому

    notes?

  • @itsevan4338
    @itsevan4338 11 місяців тому

    Awesome

  • @AbhishekKumar-mb3gz
    @AbhishekKumar-mb3gz 11 місяців тому

    mam inseartAtTail () function
    give me error

  • @aryanmaniyar3475
    @aryanmaniyar3475 Рік тому +1

    I know I am late, and I am sorry, but a very Happy Belated Teachers day Team :)

  • @ompatel2212
    @ompatel2212 Рік тому

    best video

  • @aniruddhakarmakar2685
    @aniruddhakarmakar2685 11 місяців тому

    2nd question me segmentation fault ahha raha hai.... Why

  • @jasusuthar4370
    @jasusuthar4370 11 місяців тому

    source code milega kahi?

  • @durgeshsingh6380
    @durgeshsingh6380 Рік тому

    Good 👍

  • @Rajesh-pc2rq
    @Rajesh-pc2rq Рік тому +1

    I am third ...😊

  • @foolmasti117
    @foolmasti117 28 днів тому +1

    maam your teaching way is not at all good infect raghav sir is better than you I am not demotivating,but you should improve you way of teaching maam.Hope you Understand😊

  • @sumitsahni5402
    @sumitsahni5402 Рік тому +1

    Int a; a ka data type Int hai. similarly
    Node *next; next pointer ka data type Node hai. 👍
    it should not be written like Node* next . ❌

    • @rishabhinc2936
      @rishabhinc2936 Рік тому

      what about node* &head?
      and what about Node* reverseLinkedList() ???

    • @sumitsahni5402
      @sumitsahni5402 Рік тому +1

      writing node* &head and node *&head in the parameters are equivalent.

    • @rishabhinc2936
      @rishabhinc2936 Рік тому

      @@sumitsahni5402 and bro what about writing node* as a return type for a function

  • @ramanshrivastava1407
    @ramanshrivastava1407 Рік тому +1

    4th viewer🎉🎉

  • @shankarvishalsharma
    @shankarvishalsharma Рік тому

    Good, but pure lecture mein for loop se input Lena toh sikhaya hi nahin gaya

  • @DOINGSOLUTIONS
    @DOINGSOLUTIONS 11 місяців тому

    BHAIYA ME AAPKI SAARI VIDEOS SE STUDY KRTI HU...AND MOBILE ME PRACTICE KRTI HU...
    I CAN'T AFFORD LAPTOP
    I REQUEST PW TEAM TO OFFER LAPTOPS TO NEEDY STUDENTS 😞

  • @studybiz5515
    @studybiz5515 Рік тому

    I am 2nd

  • @STATUSRAJAHINDUSTANI
    @STATUSRAJAHINDUSTANI Рік тому

    I am first viewer 😃

  • @user-uk2eg1uh6o
    @user-uk2eg1uh6o Рік тому +1

    please itne bade bade lecturee mt do dekhne mai aatma bahar aa jati haii 🙏🙏🙏🙏🙏🙏

  • @brawlysnap1522
    @brawlysnap1522 Рік тому +45

    I want to marry urvi maam

  • @user-lu8no5hw5b
    @user-lu8no5hw5b 9 місяців тому

    With all due respect whatever you are teaching is not best practice for coding in DSA.