Skip to content

Commit

Permalink
prepare 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 17, 2018
1 parent 0b47a36 commit 7f7784f
Show file tree
Hide file tree
Showing 50 changed files with 1,037 additions and 164 deletions.
2 changes: 1 addition & 1 deletion dist/super.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -4267,7 +4267,7 @@ var Trie = function () {
return Trie;
}();

var version = "0.0.7";
var version = "0.0.8";

var Super = {
version: version,
Expand Down
2 changes: 1 addition & 1 deletion dist/super.js
Original file line number Diff line number Diff line change
Expand Up @@ -4273,7 +4273,7 @@
return Trie;
}();

var version = "0.0.7";
var version = "0.0.8";

var Super = {
version: version,
Expand Down
2 changes: 1 addition & 1 deletion dist/super.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,104 @@ BinaryTreeNode

### `_right: *`

## `Heap`

### `constructor()`

### `_heap: undefined[]`

### `_compare: *`

### `_parent(index: *): *`

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | * | nullable: undefined |

### `_left(index: number): Item`

Get the left child (i.e. 2*i+1)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | |

### `_right(index: number): Item`

Get the right child (i.e. 2*i+2)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | |

### `_defaultComparator(a: *, b: *): number`

Default comparator function to sort from: highest priority (max) -> lowest priority (min)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| a | * | nullable: undefined |
| b | * | nullable: undefined |

### `isEmpty(): boolean`

Check if heap is empty

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `clear(): void`

Clear the items from the heap

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `insert(value: Item): number`

Insert an item into the heap

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| value | Item | | item to insert |

### `deleteMax(): Item`

Remove and return the maximum item

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `deleteMin(): Item`

Remove and return the minimum item

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `_percolateDown(index: number)`

Heapify down

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | | start index |

### `_percolateUp(index: number)`

Heapify up

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | | start index |

### `toArray(): Array<Item>`

Convert the heap to an array

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

## `LinkedList`

LinkedList with superpowers! 💪
Expand Down
1 change: 1 addition & 0 deletions docs/class/packages/Array/src/lib/Array.js~_Array.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Loading

0 comments on commit 7f7784f

Please sign in to comment.