Challenge: Find the Length of a Linked List

Let's write a function which can tell us the length of a linked list.

Problem Statement #

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

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