How to reverse a Singly Linked List in Java ?

Java

Video is ready, Click Here to View ×


CLICK TO DOWNLOAD COMPLETE SOURCE CODE –
http://www.hubberspot.com
***********************************************
Do Watch Video in High Quality …
***********************************************

27 thoughts on “How to reverse a Singly Linked List in Java ?

  1. I don't get why ListNode next=null. I mean in the diagram of the source list you can clearly see it representing the second node that contains 8. So I don't get why you can set it to null in the beginning of the algorithm.

Leave a Reply

Your email address will not be published. Required fields are marked *