Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ lengthOfLinkedlist
Function
lengthOfLinkedlist
python/Chapter 2/Question2_7.py:52–58 ·
view source on GitHub ↗
(linkedlist)
Source
from the content-addressed store, hash-verified
50
51
52
def
lengthOfLinkedlist(linkedlist):
53
length = 0
54
current = linkedlist.head
55
while
current != None:
56
length += 1
57
current = current.next
58
return
length
59
60
61
Callers
1
isPalindrome_recu
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected