MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / printList

Function printList

chapter02/2.4 - Partition/partition.js:58–63  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

56// Output: 3 -> 2 -> 1 -> 5 -> 5 -> 8 -> 10
57
58var printList = function(a) {
59 while (a !== null) {
60 console.log(a.value);
61 a = a.next;
62 }
63};
64
65var a = new LinkedList(3);
66var b = new LinkedList(5);

Callers 5

sumLists.jsFile · 0.85
partition.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected