Length of LL (recursive)
Given a linked list, find and return the length of input LL recursively.
Given a linked list, find and return the length of input LL recursively.
Linked list elements (separated by space and terminated by -1)
Length of LL
3 4 5 2 6 1 9 -1
7
Comments
Post a Comment
Please give us your valuable feedback