Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Computer Science (http://www.domainnameforum.org/forumdisplay.php?f=136)
-   -   How to find nth last element in a linked list using recursion? (http://www.domainnameforum.org/showthread.php?t=103333)

webdev 06-20-2010 10:40 PM

How to find nth last element in a linked list using recursion?
 
Hello All, I just wanted to know,how to use recursion to find the nth last element in a linked list? I know of an approach using 2 pointers as well as another one using 2 iterations but I can't seem to figure out the recursive solution.Any help will be greatly appreciated. Thanks.


All times are GMT -4. The time now is 11:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.