Program for n’th node from the end of a Linked List

Sairam Penjarla
Oct 30, 2020


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


def get_from_last(self,index):
temp = self.head
node = self.get_length() - index+1
temp = self.get_n(node)
return temp



Sairam Penjarla

Looking for my next opportunity to make change in a BIG way


See more recommendations