Challenge: Find the Length of a Linked List

Let's write a function to tell us 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 70+ hands-on prep courses.