Skip to content

Commit e0c17e5

Browse files
committed
updated readme
1 parent 2f61cb3 commit e0c17e5

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

readme.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,30 @@ I want to walk the walk before I talk the talk. Using this repository.
1818

1919
As theories and structures are built, I'll list them under this heading.
2020

21-
> You won't see a todo list or a target list this time around. I'll take suggestions as issues on the repository, but I'm going to focus on building commong structures and items one at a time. One thing I have learned as a developer is never get ahead of yourself, you can get paralyzed with planning and expectations.
21+
> You won't see a todo list or a target list this time around. I'll take suggestions as issues on the repository, but I'm going to focus on building commong structures and items one at a time. One thing I have learned as a developer is never get ahead of yourself, you can get paralyzed with planning and expectations.
22+
23+
- `Stack`: based on a linked list (slow)
24+
- `ArrayStack`: based on JS array (fast)
25+
- `Queue`: based on a linked list (fast)
26+
- `ArrayQueue`: based on JS array (slow)
27+
28+
## Use in your projects
29+
30+
```
31+
npm install data-theory
32+
```
33+
34+
```
35+
yarn add data-theory
36+
```
37+
38+
## Usage
39+
40+
```javascript
41+
const { queues } = require('data-theory');
42+
43+
let queue = new queues.Queue();
44+
45+
queue.enqueue('item'); // 1
46+
queue.dequeue(); // 'item'
47+
```

0 commit comments

Comments
 (0)