Hi all,
I have one querry, how we can write code or fuction for single Linked list reversal without using Collection.reverse()?
if you provided with an object of linked list..
e.g
head --> 5 --> 10 --> 3 -->18 --> 2
and required o/p should be
head --> 2 --> 18 --> 3 --> 10 -->5
pls help me out...