Search in shivacherukuri.tech@blogger.com

Monday, May 3, 2010

Find the n the element in the linked list from last in a single iteration

Ans: Take two pointers, move one pointer to the n th posistion and then start moving both pointers..
--
Siva

No comments:

Post a Comment