mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-14 06:52:59 +08:00
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# JavaScript Algorithms and Data Structures
|
|
|
|
[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms)
|
|
|
|
## [Data Structures](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures)
|
|
|
|
1. [Linked List](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/linked-list)
|
|
2. [Queue](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/queue)
|
|
3. [Stack](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/stack)
|
|
4. [Hash Table](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/hash-table)
|
|
5. [Heap](https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/heap)
|
|
|
|
## [Algorithms](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms)
|
|
|
|
1. [Fibonacci Number](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/fibonacci)
|
|
|
|
## Running Tests
|
|
|
|
**Run all tests**
|
|
```
|
|
npm test
|
|
```
|
|
|
|
**Run tests by name**
|
|
```
|
|
npm test -- -t 'LinkedList'
|
|
```
|