Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f90e0d1

Browse files
authored
Merge pull request #16 from trekhleb/master
Update project
2 parents f9e97fa + 2267642 commit f90e0d1

File tree

38 files changed

+7197
-4959
lines changed

38 files changed

+7197
-4959
lines changed

‎.babelrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["env"]
2+
"presets": ["@babel/preset-env"]
33
}

‎.huskyrc.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint && npm run test"
4+
}
5+
}

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: required
22
dist: trusty
33
language: node_js
44
node_js:
5-
- node
5+
- "11"
66
install:
77
- npm install -g codecov
88
- npm install

‎README.ja-JP.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms)
44
[![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms)
55

6-
このリポジトリには、JavaScriptベースの多数のサンプル
7-
一般的なアルゴリズムとデータ構造。
6+
このリポジトリには、JavaScriptベースの一般的なアルゴリズムとデータ構造に関する多数のサンプルが含まれています。
87

9-
各アルゴリズムとデータ構造には独自のREADMEがあります
10-
関連する説明と、さらに読むためのリンク (関連YouTubeのビデオも含まれてい).
8+
9+
各アルゴリズムとデータ構造には独自のREADMEがあります。
10+
関連する説明と、さらに読むためのリンク (関連YouTubeのビデオ)も含まれています。
1111

1212
_Read this in other languages:_
1313
[_English_](https://github.com/trekhleb/javascript-algorithms/),
@@ -36,10 +36,10 @@ _Read this in other languages:_
3636
* `B` [ヒープ](src/data-structures/heap) - max and min heap versions
3737
* `B` [優先度キュー](src/data-structures/priority-queue)
3838
* `A` [トライ](src/data-structures/trie)
39-
* `A` [リー](src/data-structures/tree)
39+
* `A` [ツリー](src/data-structures/tree)
4040
* `A` [バイナリ検索ツリー](src/data-structures/tree/binary-search-tree)
4141
* `A` [AVLツリー](src/data-structures/tree/avl-tree)
42-
* `A` [赤黒のリー](src/data-structures/tree/red-black-tree)
42+
* `A` [赤黒のツリー](src/data-structures/tree/red-black-tree)
4343
* `A` [セグメントツリー](src/data-structures/tree/segment-tree) - with min/max/sum range queries examples
4444
* `A` [フェンウィック・ツリー](src/data-structures/tree/fenwick-tree) (Binary Indexed Tree)
4545
* `A` [グラフ](src/data-structures/graph) (both directed and undirected)

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Below is the list of some of the most used Big O notations and their performance
279279
| **Array** | 1 | n | n | n | |
280280
| **Stack** | n | n | 1 | 1 | |
281281
| **Queue** | n | n | 1 | 1 | |
282-
| **Linked List** | n | n | 1 | 1 | |
282+
| **Linked List** | n | n | 1 | n | |
283283
| **Hash Table** | - | n | n | n | In case of perfect hash function costs would be O(1) |
284284
| **Binary Search Tree** | n | n | n | n | In case of balanced tree costs would be O(log(n)) |
285285
| **B-Tree** | log(n) | log(n) | log(n) | log(n) | |

‎README.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _Read this in other languages:_
5353

5454
* **数学**
5555
* `B` [Bit 操控](src/algorithms/math/bits) - set/get/update/clear 位、乘以/除以二进制位 、变负等
56-
* `B` [阶乘](src/algorithms/math/factorial)
56+
* `B` [阶乘](src/algorithms/math/factorial/README.zh-CN.md)
5757
* `B` [斐波那契数](src/algorithms/math/fibonacci) - `经典``闭式` 版本
5858
* `B` [素数检测](src/algorithms/math/primality-test) (排除法)
5959
* `B` [欧几里得算法](src/algorithms/math/euclidean-algorithm) - 计算最大公约数 (GCD)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /