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

Function LinkedList

chapter02/2.4 - Partition/partition.js:1–4  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1var LinkedList = function(value) {
2 this.value = value;
3 this.next = null;
4};
5
6var partition = function(head, partition) {
7 // approach is to create left and right threads

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected