Computer Science, asked by shashaknamdev2835, 10 months ago

Algorithm to find the nth to last element of a singly linked list

Answers

Answered by vigni2004
5
Given a Linked List and a number n, write a function returns the value at
n’th node from end of the Linked List.

For example, if input is below list and n = 3, then output is “B”



boy2255: hi
risabpatel123: hiii
Similar questions