Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ randomLinkedList
Function
randomLinkedList
python/Chapter 2/classes/LinkedList.py:53–58 ·
view source on GitHub ↗
(length, min, max)
Source
from the content-addressed store, hash-verified
51
52
53
def
randomLinkedList(length, min, max):
54
linkedlist = LinkedList()
55
for
i in range(length):
56
value = randint(min, max)
57
linkedlist.addNode(value)
58
return
linkedlist
59
60
61
Callers
6
Question2_4.py
File · 0.85
Question2_3.py
File · 0.85
Question2_5.py
File · 0.85
Question2_1.py
File · 0.85
Question2_2.py
File · 0.85
Question2_7.py
File · 0.85
Calls
2
addNode
Method · 0.95
LinkedList
Class · 0.70
Tested by
no test coverage detected