Skip to content

Commit 8f3da94

Browse files
authored
Merge branch 'master' into master
2 parents 769c213 + 94abfec commit 8f3da94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+8705
-4962
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ a set of rules that precisely define a sequence of operations.
7373
* `B` [Radian & Degree](src/algorithms/math/radian) - radians to degree and backwards conversion
7474
* `B` [Fast Powering](src/algorithms/math/fast-powering)
7575
* `A` [Integer Partition](src/algorithms/math/integer-partition)
76+
* `A` [Square Root](src/algorithms/math/square-root) - Newton's method
7677
* `A` [Liu Hui π Algorithm](src/algorithms/math/liu-hui) - approximate π calculations based on N-gons
7778
* `A` [Discrete Fourier Transform](src/algorithms/math/fourier-transform) - decompose a function of time (a signal) into the frequencies that make it up
7879
* **Sets**
@@ -279,7 +280,7 @@ Below is the list of some of the most used Big O notations and their performance
279280
| **Array** | 1 | n | n | n | |
280281
| **Stack** | n | n | 1 | 1 | |
281282
| **Queue** | n | n | 1 | 1 | |
282-
| **Linked List** | n | n | 1 | 1 | |
283+
| **Linked List** | n | n | 1 | n | |
283284
| **Hash Table** | - | n | n | n | In case of perfect hash function costs would be O(1) |
284285
| **Binary Search Tree** | n | n | n | n | In case of balanced tree costs would be O(log(n)) |
285286
| **B-Tree** | log(n) | log(n) | log(n) | log(n) | |

README.pt-BR.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ os dados.
2929

3030
`B` - Iniciante, `A` - Avançado
3131

32-
* `B` [Linked List](src/data-structures/linked-list)
33-
* `B` [Doubly Linked List](src/data-structures/doubly-linked-list)
34-
* `B` [Queue](src/data-structures/queue)
35-
* `B` [Stack](src/data-structures/stack)
36-
* `B` [Hash Table](src/data-structures/hash-table)
37-
* `B` [Heap](src/data-structures/heap)
38-
* `B` [Priority Queue](src/data-structures/priority-queue)
39-
* `A` [Trie](src/data-structures/trie)
40-
* `A` [Tree](src/data-structures/tree)
41-
* `A` [Binary Search Tree](src/data-structures/tree/binary-search-tree)
42-
* `A` [AVL Tree](src/data-structures/tree/avl-tree)
43-
* `A` [Red-Black Tree](src/data-structures/tree/red-black-tree)
44-
* `A` [Segment Tree](src/data-structures/tree/segment-tree) - com exemplos de consultas min / max / sum range
45-
* `A` [Fenwick Tree](src/data-structures/tree/fenwick-tree) (Árvore indexada binária)
46-
* `A` [Graph](src/data-structures/graph) (ambos dirigidos e não direcionados)
47-
* `A` [Disjoint Set](src/data-structures/disjoint-set)
48-
* `A` [Bloom Filter](src/data-structures/bloom-filter)
32+
* `B` [Lista Encadeada (Linked List)](src/data-structures/linked-list/README.pt-BR.md)
33+
* `B` [Lista Duplamente Ligada (Doubly Linked List)](src/data-structures/doubly-linked-list/README.pt-BR.md)
34+
* `B` [Fila (Queue)](src/data-structures/queue/README.pt-BR.md)
35+
* `B` [Stack](src/data-structures/stack/README.pt-BR.md)
36+
* `B` [Tabela de Hash (Hash Table)](src/data-structures/hash-table/README.pt-BR.md)
37+
* `B` [Heap](src/data-structures/heap/README.pt-BR.md)
38+
* `B` [Fila de Prioridade (Priority Queue)](src/data-structures/priority-queue/README.pt-BR.md)
39+
* `A` [Trie](src/data-structures/trie/README.pt-BR.md)
40+
* `A` [Árvore (Tree)](src/data-structures/tree/README.pt-BR.md)
41+
* `A` [Árvore de Pesquisa Binária (Binary Search Tree)](src/data-structures/tree/binary-search-tree/README.pt-BR.md)
42+
* `A` [Árvore AVL (AVL Tree)](src/data-structures/tree/avl-tree/README.pt-BR.md)
43+
* `A` [Árvore Vermelha-Preta (Red-Black Tree)](src/data-structures/tree/red-black-tree/README.pt-BR.md)
44+
* `A` [Árvore de Segmento (Segment Tree)](src/data-structures/tree/segment-tree/README.pt-BR.md) - com exemplos de consultas min / max / sum range
45+
* `A` [Árvore Fenwick (Fenwick Tree)](src/data-structures/tree/fenwick-tree/README.pt-BR.md) (Árvore indexada binária)
46+
* `A` [Gráfico (Graph)](src/data-structures/graph/README.pt-BR.md) (ambos dirigidos e não direcionados)
47+
* `A` [Conjunto Disjuntor (Disjoint Set)](src/data-structures/disjoint-set/README.pt-BR.md)
48+
* `A` [Filtro Bloom (Bloom Filter)](src/data-structures/bloom-filter/README.pt-BR.md)
4949

5050
## Algoritmos
5151

0 commit comments

Comments
 (0)