Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mike442144 committed Dec 29, 2017
1 parent 2f9d6a3 commit f815f03
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ A common data-structure and basic algorithm implemention in javascript
* Red-Black Tree
* Heap
* Graph
* [Others](#others)
* [Node](#node)
* [DoublyNode](#node)
* [BinaryTreeNode](#binarytreenode)
* [Algorithms](#algorithms)
* [Sorting Algorithms](#sorting-algorithms)
* [Insertion-Sort](#sorting-algorithms)
Expand Down Expand Up @@ -111,7 +115,7 @@ Adds a node to the end of the Queue.
Adds an element to the end of the Queue.

##### dequeueNode()
Removes and returns the node<[DoublyNode](#DoublyNode)> at the beginning of the Queue.
Removes and returns the [node](#DoublyNode) at the beginning of the Queue.

##### dequeue()
Removes and returns the element at the beginning of the Queue.
Expand Down Expand Up @@ -159,15 +163,6 @@ Removes all elements from the Stack.
##### length
The size of queue

#### Others
##### DoublyNode
* `prev` DoublyNode
* `next` DoublyNode
* `val` any

##### Node
* `next` Node
* `val` any

### Trees

Expand Down Expand Up @@ -209,6 +204,21 @@ Insert value according to the rule of BST.

Return true or false if exist value.

### Others
#### Node
* `next` Node
* `val` any

#### DoublyNode
* `prev` DoublyNode
* `next` DoublyNode
* `val` any

#### BinaryTreeNode
* `left` BinaryTreeNode
* `right` BinaryTreeNode
* `val` any

## Algorithms

### Sorting Algorithms
Expand Down

0 comments on commit f815f03

Please sign in to comment.