Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue: Wrong array representation in Heap README.md #640 #641

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data-structures/heap/README.fr-FR.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ Dans un *tas minimal* (en anglais *min heap*), si `P` est un nœud parent de `C`

Dans un *tas maximal* (en anglais *max heap*), la clé de `P` est supérieure ou égale à la clé de `C`.

![Heap](https://upload.wikimedia.org/wikipedia/commons/3/38/Max-Heap.svg)
![Heap](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)

Le nœud au «sommet» du tas sans parents est appelé le nœud racine.

2 changes: 1 addition & 1 deletion src/data-structures/heap/README.ja-JP.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

*最大ヒープ*では、`P`のキーは`C`のキーより大きい、もしくは等しくなります。

![Heap](https://upload.wikimedia.org/wikipedia/commons/3/38/Max-Heap.svg)
![Heap](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)

ヒープの「トップ」のノードには親ノードが存在せず、ルートノードと呼ばれます。

2 changes: 1 addition & 1 deletion src/data-structures/heap/README.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ key of `C`.
In a *max heap*, the key of `P` is greater than or equal
to the key of `C`

![Heap](https://upload.wikimedia.org/wikipedia/commons/3/38/Max-Heap.svg)
![Heap](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)

The node at the "top" of the heap with no parents is
called the root node.
2 changes: 1 addition & 1 deletion src/data-structures/heap/README.pt-BR.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ Em um *heap mínimo* (min heap), caso `P` é um nó pai de `C`, então a chave
Em uma *heap máximo* (max heap), a chave de `P` é maior ou igual
a chave de `C`.

![Heap](https://upload.wikimedia.org/wikipedia/commons/3/38/Max-Heap.svg)
![Heap](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)

O nó no "topo" do _heap_, cujo não possui pais, é chamado de nó raiz.

2 changes: 1 addition & 1 deletion src/data-structures/heap/README.ru-RU.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

Если сравнение перевернуть, то наименьший элемент будет всегда корневым узлом, такие кучи называют min-кучами.

![Min-куча](https://upload.wikimedia.org/wikipedia/commons/6/69/Min-heap.png)
![Min-куча](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)

Не существует никаких ограничений относительно того, сколько узлов-потомков имеет каждый узел кучи. На практике их
число обычно не более двух. Куча является максимально эффективной реализацией абстрактного типа данных, который
2 changes: 1 addition & 1 deletion src/data-structures/heap/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

在一个 *最大堆(max heap)* 中, `P` 的key(或value)大于 `C` 的对应值。

![堆](https://upload.wikimedia.org/wikipedia/commons/3/38/Max-Heap.svg)
![堆](https://user-images.githubusercontent.com/17690376/107872731-50a35100-6ed2-11eb-93bc-0a8a25243e18.jpg)


在堆“顶部”的没有父级节点的节点,被称之为根节点。