Make delicious recipes!

Find Nth node from last

Use two pointers.
Separate them by N and traverse.
When one of the pointers reaches the end, the other pointer is at Nth node from the last.

Like us on Facebook to remain in touch
with the latest in technology and tutorials!

Got a thought to share or found a
bug in the code?
We'd love to hear from you:

Email: (Your email is not shared with anybody)

Facebook comments:

Site Owner: Sachin Goyal