MCPcopy 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
53def 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.pyFile · 0.85
Question2_3.pyFile · 0.85
Question2_5.pyFile · 0.85
Question2_1.pyFile · 0.85
Question2_2.pyFile · 0.85
Question2_7.pyFile · 0.85

Calls 2

addNodeMethod · 0.95
LinkedListClass · 0.70

Tested by

no test coverage detected