Reverse a Singly Linked List in Java | Leetcode #206 | Data Structures & Algorithms

Reverse a Singly Linked List in Java | Leetcode #206 | Data Structures & Algorithms

Dinesh Varyani

7 лет назад

151,378 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

philb
philb - 07.11.2023 22:19

Took so much time to understand this, but finally. Thanks Dinesh

Ответить
Ngọc Hùng Phạm
Ngọc Hùng Phạm - 19.09.2023 17:22

YOU ARE BEST !!!!

Ответить
chitti
chitti - 12.08.2023 14:51

Thank you 😊 so much for uploading a playlist of 230 videos for DSA in Java.....
It really means a lot to me...🙏🙏
Ur videos will never be replaced by any fee paid courses....dam sure!!!!!

Ответить
NAI BHAVIK
NAI BHAVIK - 10.06.2023 15:31

Thank You Sir❤!

Ответить
debanjana santra
debanjana santra - 14.05.2023 20:29

Hi Dinesh,
Have been following your content and I really appreciate the call stacks that you show whenever there is a recursive approach. I would be glad if you can explain the recursive approach to this problem using the call stack.

Ответить
sushmitha HS
sushmitha HS - 23.04.2023 11:32

thank you so much sir, DSA playlist helping me a lot😊

Ответить
Raiyan Ul Islam
Raiyan Ul Islam - 02.04.2023 20:12

helped thanks

Ответить
Educated idiot
Educated idiot - 16.02.2023 19:49

Awesome explaination 🤩......

Ответить
Jiadi Zhang
Jiadi Zhang - 10.02.2023 09:25

I got you Bro!! Thanks for sharing your knowledge !!!

Ответить
Shikander Raja
Shikander Raja - 02.01.2023 09:07

Sir, I could see the overloaded method display(ListNode node) not included in source code. Please include, it will be useful.

Ответить
Vikas Singh
Vikas Singh - 28.12.2022 17:08

you use many part of ppt this is understandable any concept thanks you sir give me whole knowledge particular algorithm step by step
❣❣

Ответить
Vikas Singh
Vikas Singh - 28.12.2022 17:03

your tutorial very best

Ответить
Tarun Mittal
Tarun Mittal - 28.12.2022 07:34

what the hell lol!!! how can someone be so damn good at explaining stuff. Thanks so much! :)

Ответить
Maryam Naveed
Maryam Naveed - 02.08.2022 09:27

this doesnt produce correct reesults yet is accepted by leetcode

Ответить
BUDDAIAH VAGAIRA JANARDHAN RAO
BUDDAIAH VAGAIRA JANARDHAN RAO - 18.07.2022 17:13

Sir..Can u provide source code for this code... Seperately. In github link of urs... It's all merged. So please provide me a source code for this reverse a singly Linked List Code. Thanks

Ответить
Anjaneyulu Macherla
Anjaneyulu Macherla - 09.07.2022 16:37

Simply superb. I struggled to understand this concept even after seeing other animated code. Its crystal clear now. Thank You Techie. Long Live :) :)

Ответить
Lissette Soto
Lissette Soto - 03.06.2022 07:34

very good demo thank you

Ответить
shreyansh jain
shreyansh jain - 24.05.2022 16:45

private ListNode head change to private static ListNode head; your code will work smoothly and in display parameter write ListNode head.. nice videos sir i am Following it daily ❤️😊👏

Ответить
Varsha Bhat
Varsha Bhat - 19.05.2022 01:42

I did not get how are we displaying the list, because. display is taking head, but in source code, we just have a display method without any parameters. Can someone help?

Ответить
Kunal Kheeva
Kunal Kheeva - 17.05.2022 13:17

thank god i found something good !!

Ответить
King Things
King Things - 16.03.2022 05:41

here display method void it doesnot take any parameters till your last videos
can you pls send the code to me.i have little bit confusion in the demonstration of this

Ответить
Vishal Rane
Vishal Rane - 11.03.2022 09:15

Very nice explaination sir 👍🏻 Thank you

Ответить
Diana L
Diana L - 23.02.2022 18:03

Thank you! I finally got it! Spend a lot of time trying to understand the logic. Your example is brilliant! We basically reverse every link back to the previous element!

Ответить
Abhinav Harsh
Abhinav Harsh - 16.02.2022 22:33

Actually I created the linked list from your video then when using the reverse code it is not working as i guess you have made some changes in main method while calling the reverse method

Ответить
Abhinav Harsh
Abhinav Harsh - 16.02.2022 22:32

Why your code is not working

Ответить
Surbhi Bhardwaj
Surbhi Bhardwaj - 06.02.2022 10:25

Thank you sir!

Ответить
Kusuma reddy
Kusuma reddy - 20.01.2022 12:07

Thank you very much sir for your wonderful videos, it helped me a lot

Ответить
S6_033_Dhruv Trehan
S6_033_Dhruv Trehan - 06.01.2022 10:06

Sir can you make a video on this question :--

Reverse a Linked List in groups of given size.

Ответить
harshad gandhale
harshad gandhale - 27.12.2021 11:34

Dinesh Sir capgemini ,tcs,accenture inke coding rounds questions kaise solve karte hey ...make videos on that it will be helpful for us

Ответить
harshad gandhale
harshad gandhale - 27.12.2021 11:33

Excellent work sir

Ответить
rash_gaming
rash_gaming - 04.11.2021 19:56

don't know why your videos are so underrated, the explanation is simply amazing👌👌

Ответить
Archit Toshniwal
Archit Toshniwal - 15.10.2021 18:50

Sir can you Please make a video on reverse linked list in group of K

Ответить
Abhishek Kumar
Abhishek Kumar - 06.10.2021 10:47

Thank you,Sir. You are a saviour.

Ответить
Mkeebs
Mkeebs - 27.09.2021 03:09

explanations another level ty :)

Ответить
Bruicie Doocie
Bruicie Doocie - 23.09.2021 18:47

Sir actually the head still points to the first node even after reversing it.. is it normal??
because when i apply the length() method it shows the length to be 1 if i reverse the list.
need help sir!

Ответить
Kinnera Vijay
Kinnera Vijay - 20.08.2021 10:15

But sir i am facing an error like can't make a static reference to non static field head

Ответить
Cameron
Cameron - 08.08.2021 11:36

Thank you for making this concept so much easier!

Ответить
Sneha N
Sneha N - 21.07.2021 09:07

thank you sir!!

Ответить
Rohan Kumar Shah
Rohan Kumar Shah - 13.07.2021 20:13

Damn, your animations are super cool which makes learning truly understandably!

Ответить
Aditya Arpan Sahoo
Aditya Arpan Sahoo - 02.07.2021 15:25

Very simple and nice demonstration. Thank you very much for this awesome video. : )

Ответить
Pranav Joshi
Pranav Joshi - 24.06.2021 14:47

modular banake dikhao single clss me nahi

Ответить
Dinesh Nembang
Dinesh Nembang - 04.06.2021 22:15

thanks for your good explanation in a simple way sir,
lots of love from nepal

Ответить
Nandini Bagga
Nandini Bagga - 25.05.2021 02:17

Great representation! VERY RARE TO FIND!

Ответить
Devil
Devil - 23.05.2021 06:25

sir why this display method contains parameter(arguments) now, as in previous lectures it is not!!!!
sir, when to use and when not to?????

Ответить
Abhishek Ranjan
Abhishek Ranjan - 16.03.2021 10:09

sir how to remember all the codes and algorithms.. please give your opinion about this... Please sir 🙏

Ответить
MMS
MMS - 09.03.2021 16:33

Why are we returning previous? Also why are we passing the head node while calling the function?

Ответить