Challenge 4: Find the Length of a Linked List

Write a function, which can tell you the length of a linked list.

Problem statement

In this problem, you have to implement the Length() function, which will find the length of a given linked list.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.