Traversing a Circular Singly Linked List

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 27

  • @FranksCreativeCorner
    @FranksCreativeCorner ปีที่แล้ว

    I had "implement circular linked list" in a TDA I've done previously with normal list as a college assignment. It looked simple so I tried doing it on my own, but it turned out it was NOT simple, as I encountered many problems along the way.
    Eventually I run out of ideas and I realised "I think I'm missing something here..." so I looked up some TH-cam vids about the topic to help, and first thing I found were yours. Gotta admit that even though I'm yet to try this, I have no doubt that now I really understand these kinds of lists.
    Turns out, I was trying to adapt my simply linked list library (functions and structure) to a circular one, but I didn't fully get the differences when traversing them, or when adding/removing nodes. But now I do, so thank you! Also, you're an awesome explainer Neso, each time I watch a video of yours, every topic gets 1000 times simpler to understand.
    The only thing I'd like is that you'd explain what would happen in special cases, like for example, in your videos about inserting nodes in these kinds of lists, I ended watching those and still wondered "but how do you do if there's only one node in the list? what if the list is empty?". I managed to figure some of those doubts out eventually, but I think if you could explain these kinds of situations, it'd be perfect.
    TYSM for the videos! They were of great value!

  • @arulkumara2077
    @arulkumara2077 4 ปีที่แล้ว +2

    Please post daily one video.... Your the best teaching of data structures... Super sir

  • @madhuritolambe898
    @madhuritolambe898 3 ปีที่แล้ว +8

    Sir Ji..!!!! please make videos on stack , queue , etc ASAP :) and also thank you so much for this series. God bless you!

    • @rishabhverma5848
      @rishabhverma5848 3 ปีที่แล้ว

      stack and qeeue are entirely based on linked list . binary tree would have be better

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 ปีที่แล้ว +3

    I love Neso Academy :)

  • @harihardhik3293
    @harihardhik3293 ปีที่แล้ว

    Such amazing lectures with high quality 👍

  • @kevalrathodvlogs
    @kevalrathodvlogs 4 ปีที่แล้ว +1

    Please , Make complete tutorial on playlist apptitude and resoning .

  • @utkarshlath9098
    @utkarshlath9098 4 ปีที่แล้ว

    how much [deadline /time], you set for yourself to complete full gate cs lectures or it is a slow,gradual and random process?

  • @richaaggarwal07
    @richaaggarwal07 2 ปีที่แล้ว

    thanks a ton for solving my doubt of while and do while 😄😄

  • @divyanahsain7161
    @divyanahsain7161 7 หลายเดือนก่อน

    you are great men you are great🥰

  • @valvaraad
    @valvaraad ปีที่แล้ว

    What about double pointers? Function will output error

  • @bitethebyte
    @bitethebyte 4 ปีที่แล้ว

    Please increase the frequency 🙏🙏

  • @harshalkumar4538
    @harshalkumar4538 3 ปีที่แล้ว

    instead of using do while loop we could have used "continue" , am i right?

  • @ronniesam9941
    @ronniesam9941 3 ปีที่แล้ว

    can we do like this instead of do while loop.
    struct node *p=tail->next;
    while(p->next!=tail->next){
    printf("%d",p->data);
    p=p->next;
    }printf("%d",p->data);

    • @mukulrawat8584
      @mukulrawat8584 2 ปีที่แล้ว

      if we will do like this, then we can not able to print the last data of the list

  • @utkarshlath9098
    @utkarshlath9098 4 ปีที่แล้ว

    sir please assure me is your content enough for gate cse preparation ?are these lectures mainly specifically desgined for gate cse ?

  • @IIM_life_by_Divya
    @IIM_life_by_Divya 4 ปีที่แล้ว +1

    Sir pls tell me what happens to p after this statement
    For(p=head;p!=null;p=p->next)
    free(p);

    • @mdshahnawazalam4031
      @mdshahnawazalam4031 2 ปีที่แล้ว

      P is made by SMA so after finishing function p will destroy automatically

    • @mdshahnawazalam4031
      @mdshahnawazalam4031 2 ปีที่แล้ว

      Hahaha i know i found msg too early 😁

  • @bdw4gaming864
    @bdw4gaming864 4 ปีที่แล้ว

    What if we used p!=tail and used only while loop?

    • @B-Aparnasai
      @B-Aparnasai 3 ปีที่แล้ว +1

      p!=tail. For this condition it not print the data of last node it simply exit out of the loop
      So after exiting from the loop we have to write
      Printf ("%d",p->data);

  • @kevalrathodvlogs
    @kevalrathodvlogs 4 ปีที่แล้ว

    Nice

  • @Nodemcuesp-vw1sj
    @Nodemcuesp-vw1sj 4 ปีที่แล้ว

    up

  • @___vijay___
    @___vijay___ 4 ปีที่แล้ว

    😃

  • @prikshatsharma2770
    @prikshatsharma2770 3 ปีที่แล้ว

    👍👍🌟🌟🌟🌟🌟