Reverse a Single Linked List

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 126

  • @kundankulkarni1728
    @kundankulkarni1728 4 года назад +168

    Golden channel for CS students...
    As I am a CS student Neso Academy is my real university that I can depend upon.

    • @VinyZikss
      @VinyZikss 2 года назад +9

      Exactly.
      Go to class to see what teacher is teaching
      At home do exercises
      Whenever with any doubt or difficulties in a topic watch Neso Academy
      Repeat

  • @frankkkmate4267
    @frankkkmate4267 4 года назад +110

    "Thank you sir!" --from a CS student in China

  • @sameersrol
    @sameersrol 4 года назад +27

    Before watching this, had seen around 3-4 videos related to same question. But this gave me a very clear idea. Thank You.. My Best Wishes for you..:)

  • @orlandotigers3168
    @orlandotigers3168 Год назад +13

    watching it from USA. i never had a teacher who explain so good!! kudos to him

  • @pragyasingh5880
    @pragyasingh5880 3 года назад +13

    this is most simplest and easily explanation of this question imo. Thanks a lot!

  • @sergion_brayen
    @sergion_brayen 2 года назад +6

    you are the best teacher ever and this playlist is so underatted

  • @Drill-ing
    @Drill-ing 4 года назад +12

    Great Explainer and great voice 🔊🔊🔊

  • @kutchve8198
    @kutchve8198 4 года назад +10

    loving the class
    had to comnt to boost your content.

  • @muralim3691
    @muralim3691 Год назад +3

    you're a doc, you reduced my headache by explaining it in such a way. great job please keep posting more and more videos

  • @akshitsanwal3548
    @akshitsanwal3548 4 года назад +54

    Sir please increase the frequency of videos.. Most of us are tptally dependent on you.great fan. Please drop your insta id....

    • @geekyprogrammer4831
      @geekyprogrammer4831 3 года назад +13

      you do understand it takes time, effort and cost to make such high quality course.

  • @crazyvaleideas
    @crazyvaleideas 3 года назад +10

    You made it Easy !! Thanks man for such a quality content !

  • @pranavbakare8922
    @pranavbakare8922 4 года назад +11

    Best explaination with minimum steps!!!!! Thank you🙏👍✌

    • @pranavbakare8922
      @pranavbakare8922 4 года назад +2

      And one more thing I completed all operations in Linked list and now I am able to do that confidence Thank you!!!!!😃😄😁

  • @buckyrobert6570
    @buckyrobert6570 Год назад +1

    This is by far the best explanation I have found on the internet.

  • @lifeisgodlifeisgod3581
    @lifeisgodlifeisgod3581 Год назад +2

    Thanks best explanation

  • @WincentSimon
    @WincentSimon 4 года назад +14

    Sir awesome content! Good work Sir, you are proving all your haters wrong by bringing such awesome content. Kudos and hope you complete it soon! May God bless you abundantly!!

  • @nishyu9101
    @nishyu9101 2 года назад +2

    Funny when i made the code it felt very difficult, now when you explained this, it doesn't sound so difficult. Will have to tryout this code for different cases. Thanks a lot

  • @innocentakram1477
    @innocentakram1477 7 месяцев назад +1

    The one thing that is amazing in your lectures sir, that you explain the logic of every piece of code: How that works and all...I salute you for that Sir 🙏

  • @shreyamishra7293
    @shreyamishra7293 4 года назад +5

    Sir please please make complete playlist of linked list.
    You are the only one who made me to understand data structure
    Please sir make complete playlist of linked list.

  • @sumitjain3938
    @sumitjain3938 2 года назад +2

    Okay! I need some cofee, now. WOW! So much to digest and brilliantly explained.

  • @prajwalgowda6206
    @prajwalgowda6206 4 года назад +2

    I am a huge fan of is voice and teaching

  • @pranavbakare8922
    @pranavbakare8922 4 года назад +4

    Sir Continued seriously super excited about further vidioes. Your teaching nailed the data structures

  • @kajalmondal9745
    @kajalmondal9745 4 года назад +11

    Sir is it possible to complete the data structures series before gate 2021?

  • @jalareddy9335
    @jalareddy9335 Год назад +1

    Kudos. Excellent teaching ..

  • @amhikonkani1766
    @amhikonkani1766 Год назад +3

    What an explanation. Just amazing !!!

  • @robot67799
    @robot67799 2 года назад +1

    Very helpful 💚

  • @angelosorte1
    @angelosorte1 Год назад +1

    Best explanation ever!

  • @abhashsingh1802
    @abhashsingh1802 3 года назад

    yaar ye @nesoacademy kitna awesome hai yaar

  • @vamsiswaroopv549
    @vamsiswaroopv549 11 месяцев назад +2

    Excellent explanation. But I would suggest to slow down the algorithm part a little bit

  • @nirjala8962
    @nirjala8962 Год назад

    I have fallen in love with this guy and the subject❤❤❤

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 года назад +1

    I love Neso Academy. 💝

  • @markkithinji2666
    @markkithinji2666 Год назад +1

    I didnt get a thing, but I really enjoyed it😂. Very well presented with good illutrations

  • @himanshujain5670
    @himanshujain5670 Год назад

    superb explanation

  • @santoshbhupati3579
    @santoshbhupati3579 4 года назад +1

    Great explained thankyou sir😍☺️☺️

  • @preethammm4660
    @preethammm4660 10 месяцев назад

    Thanking you whole heartedly 🎉

  • @satyaprakash4598
    @satyaprakash4598 4 года назад +4

    I am waiting for recursive approach.

  • @tay_la14
    @tay_la14 Год назад

    thank you that was really helpful

  • @kshitijchaudhary2871
    @kshitijchaudhary2871 4 года назад +2

    sir, I think before returning head pointer to main function, there should be one more statement i.e. prev=next, so as to release prev pointer.

  • @baristural
    @baristural 3 года назад +2

    Sir you didn't declared ptr in the program. When I try to run in compiler it doesn't work. how can I declare ptr ?

  • @Andre-ij8ft
    @Andre-ij8ft 3 года назад +1

    Thank you very much! I think you've just saved me

  • @viveksuman9600
    @viveksuman9600 3 года назад +1

    the best I could find. Thanks for making it easy :)

  • @farhanwarsame3766
    @farhanwarsame3766 4 года назад +3

    Thanks for another great video.
    I was asking if there’s a way to get (buy) file handling videos of C programming if I don’t have an android device? I am working on both C and data structures.

  • @ThamaraiselvamT
    @ThamaraiselvamT 3 года назад

    This is really helpful

  • @_Dev_prajapati
    @_Dev_prajapati Год назад

    Thank you so much sir 👌

  • @tienphamngoc8937
    @tienphamngoc8937 Год назад

    Nice It's too easy to understand

  • @aiswaryakumarsahoo1008
    @aiswaryakumarsahoo1008 4 года назад +2

    Sir please upload complete data structure

  • @kutchve8198
    @kutchve8198 4 года назад +2

    Love from Nepal

  • @deepanshuverma6791
    @deepanshuverma6791 4 года назад +3

    Hey neso academy
    Please bring the html css and java script course please there are lot of videos on youtube platform but your chnanel explanation is very nice so please bring it up

  • @rohankumarshah5679
    @rohankumarshah5679 3 года назад

    This videos just cleared my doubt

  • @dev1ledits715
    @dev1ledits715 Год назад

    very efficent video ty

  • @venkateswarluvenkateswarlu7022
    @venkateswarluvenkateswarlu7022 3 года назад

    Big fan of Neso Academy

  • @reverbism
    @reverbism 2 года назад

    Thank You

  • @sabbysays
    @sabbysays 4 года назад +1

    Sir please upload more videos on Data Structures 🙏

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 3 года назад

    thank you so much

  • @shirleymoon9934
    @shirleymoon9934 2 месяца назад

    7:47 excellent

  • @poornachandumarneni1068
    @poornachandumarneni1068 Год назад

    in the following peice of code at "11:37" code where we are setting first node link to null?, or my understanding is worng?

  • @bhuvanamadhanbhuvanamadhan
    @bhuvanamadhanbhuvanamadhan 8 месяцев назад +1

    Could youbplease explain DSA in python program

  • @incrdble9704
    @incrdble9704 Год назад

    11:09 instead of [head = prev; return head;] we can just do [return prev;]

  • @yadavkrishna5255
    @yadavkrishna5255 Год назад +1

    Sir,i found very difficult to get this logic by myself , how to build such logic mind?

  • @rupalipradhan9743
    @rupalipradhan9743 Год назад

    "Thank you sir!" °-° -from a CS student in Odisha

  • @gautamgarg7377
    @gautamgarg7377 4 года назад

    Temp (last node)
    Temp2 (2nd last node)
    temp->link=temp2
    temp2=*temp

  • @dibyajyoti_47
    @dibyajyoti_47 3 года назад

    Thanks mate.

  • @HEPSIBAGANDRA
    @HEPSIBAGANDRA 16 дней назад

    Sir reversing the linked list means i first thought that just reversing the data in the nodes,
    Is doesn't mean sir?
    But output is same for both.

  • @chugilc
    @chugilc 4 года назад

    Good One 🔥

  • @Kotivana_9
    @Kotivana_9 8 дней назад

    Listen once again carefully if you didnt get it in your first attempt bcz it is very simple if you concentrate.

  • @SarraDebhane
    @SarraDebhane 11 месяцев назад

    Thank you from algeria

  • @varunpatil5270
    @varunpatil5270 Год назад

    Sir .... Does the code remains same if we use concept of double pointers ????

  • @cmway
    @cmway 4 года назад +1

    Super sir.shall you explain with a c++ program which includes single linked list as headerfile.using that headerfile, can we do all the operations of linked list?If it is possible then please explain it sir.Is there any predefined single linked list ADT available in c++.If it is available then please explain it with simple c++ program.Thanking you sir.

    • @sauravkumar7508
      @sauravkumar7508 4 года назад

      checkout @mycodeschool . He has taught DS in c++

  • @Rajkillofficial
    @Rajkillofficial 10 месяцев назад

    Sir please explain it in RESURSIVE APPRAOCH

  • @eeeitguy4655
    @eeeitguy4655 3 года назад +1

    why cant we reverse the data instead of reversing the node i think both make the same sense

  • @AfrojaTayyeba
    @AfrojaTayyeba Месяц назад +1

    🙌

  • @ishankoul3023
    @ishankoul3023 3 года назад

    If i try to seek input from the user , (inserting element at the end) displays 0 and then the value. why am i getting a zero when i print it?

  • @abhishekgadewar4616
    @abhishekgadewar4616 3 года назад

    can we pass head by address here?

  • @anjurjadhav1175
    @anjurjadhav1175 4 года назад

    Sir it's very good but It is discontinue,
    Yesterdays class was about the apptitude & reasoning

  • @Adityasharma-oe8zp
    @Adityasharma-oe8zp 3 года назад

    Why dont we first traverse the list in a function and then put address of last node in temp and then second last in temp 2 then put addresses in a reverse order

  • @gamingwithindian8492
    @gamingwithindian8492 2 года назад +1

    WOW 🔥

  • @LordRadhakrishnaa
    @LordRadhakrishnaa 2 года назад

    awesome

  • @piyushjoshi8125
    @piyushjoshi8125 4 года назад

    sir i am still confuse in ptr function mentioned inside main() which vedio i can find it ?

  • @GauravKumar-pl5ki
    @GauravKumar-pl5ki Год назад

    why can't we use group theory permutational group concept ,like as we see in first example we have a permutational group of order 3 thus let our initial link list be r then r^3 is e which is r itself but it's inverse is r^2 as r*r^2 is e thus by two or just one pointer we can solve this problem...

  • @Brlitzkreig
    @Brlitzkreig 2 года назад

    This guy is an amazing teacher but his accent is so funny

    • @devr4j
      @devr4j 2 года назад

      i mean it's his native accent like every country have

  • @bismawaheed5537
    @bismawaheed5537 11 месяцев назад

    Can u plz reverse the linklist using array plz...

  • @ishwarreddy8820
    @ishwarreddy8820 3 месяца назад

    what is the use

  • @amhikonkani1766
    @amhikonkani1766 Год назад

    Only one word "best"

  • @IsaDemir-zu7fd
    @IsaDemir-zu7fd Год назад +1

    add subtitles please

  • @mrmakra-eo1kx
    @mrmakra-eo1kx 4 года назад +1

    Really good one
    I have tried to make something deferent by kinda swapping all the linked list one by one its kind of taking the head and put it on the tail and something....

  • @AnkitMishra-hd5uu
    @AnkitMishra-hd5uu 3 года назад

    But what if we have 100 nodes

  • @devd_rx
    @devd_rx Год назад

    why do they say linked list reversal is hard

  • @anshikayadav7857
    @anshikayadav7857 4 года назад

    Sir please explain this:-
    We're using "struct node *_____; " so this means ___ will contain data & link too. So whenever we're creating any new pointer why don't we use int. Because if we're using struct node * then everytime it'll create a new node due to struct node data type.
    Please explain anyone can do so please.

    • @shelbys1533
      @shelbys1533 3 года назад +1

      Yes u r right

    • @starkendeavours7072
      @starkendeavours7072 3 года назад +2

      It's not like whenver you write struct node *, it'll also occupy memory of (int + struct node *). by writing only struct node * ptr, it'll create a pointer that can only store the address of Node type data.
      But if you use struct node *ptr = (struct node *)malloc(sizeof(struct node ) ), then only it'll actually request memeory from heap via malloc function by creating the memory instance of that node data-type.

  • @naolfekadu6101
    @naolfekadu6101 Год назад

    you could have used better variable names to make it more intutitive, but still good job

  • @23cash86
    @23cash86 2 года назад

    Neso Academy X
    Neso University XD

  • @suryas1616
    @suryas1616 2 года назад

    Legend

  • @sudheerjalli4707
    @sudheerjalli4707 4 года назад

    Plz upload nxt videos

  • @ashwiniverma1147
    @ashwiniverma1147 3 года назад

    You yourself understand... :)

  • @wog4299
    @wog4299 2 года назад

    In my college they are still teaching how to use variable and here I am reversing a single linked list.

  • @zivroy2473
    @zivroy2473 4 года назад +2

    Please complete sir
    .i beg you

  • @ضحكتكتهمنا-ط3ر
    @ضحكتكتهمنا-ط3ر 3 года назад

    please subtitle arabic (translate arabic)i need it necessary pls

  • @PavanKalyan-ig2bp
    @PavanKalyan-ig2bp 3 года назад

    😯😯😯🧐🧐🧐🧐👏👏👏👏

  • @adityagodghate4760
    @adityagodghate4760 2 года назад

    yoyo

  • @isahsnli8991
    @isahsnli8991 Месяц назад

    i really appreciate your effort but you keep explaining same concepts so long and it makes me bored and i lose the your flow,just a review

  • @rohitshrivastava4318
    @rohitshrivastava4318 3 года назад

    GFG explained better this concept

  • @madar1
    @madar1 3 года назад

    too fast