Find Kth Node from end of linked list

Instructor: admin Duration: 15 mins


*************************************************************************************************************

Problem Statement:

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

Example:

Given linked list: 1->2->3->4->5, and k = 2.

Output: 4

Level: Easy

Python Executalbe Code: https://onlinegdb.com/BkFiDLpqH

*******************************************************************************************************

28 Comment(s)

1.4
18 min
1.5
13 min
1.30
19 min
3.17
16 min
11.4
38 min