hey starting data structers through pointers , i don't know how to reverse a singly linklist?
Have you learned recursion? I think you could reverse an empty list quite easily wouldn't you? You just figure out how to reverse the list consisting on first node and rest of list reversed. Non-recursive reversing requires just that you remember the previous node and consider carefully corner cases like … Read More