MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / getLength

Method getLength

Array/RotateList.py:60–67  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

58 return head
59
60 def getLength(node):
61 length = 0
62
63 while node:
64 node = node.next
65 length += 1
66
67 return length
68
69 length = getLength(head)
70 k = k % length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected