Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mateusmlo/javascript-algorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: patch-1
Choose a base ref
...
head repository: trekhleb/javascript-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
Showing with 1,825 additions and 91 deletions.
  1. +1 −0 .eslintrc
  2. +4 −2 README.ar-AR.md
  3. +3 −1 README.de-DE.md
  4. +4 −2 README.es-ES.md
  5. +3 −1 README.fr-FR.md
  6. +370 −0 README.he-IL.md
  7. +3 −1 README.id-ID.md
  8. +3 −1 README.it-IT.md
  9. +3 −1 README.ja-JP.md
  10. +3 −1 README.ko-KR.md
  11. +17 −12 README.md
  12. +3 −1 README.pl-PL.md
  13. +3 −1 README.pt-BR.md
  14. +3 −1 README.ru-RU.md
  15. +3 −1 README.tr-TR.md
  16. +3 −1 README.uk-UA.md
  17. +359 −0 README.uz-UZ.md
  18. +21 −20 README.vi-VN.md
  19. +3 −1 README.zh-CN.md
  20. +3 −1 README.zh-TW.md
  21. +27 −0 src/algorithms/search/binary-search/README.es-ES.md
  22. +9 −8 src/algorithms/search/binary-search/README.md
  23. +1 −0 src/algorithms/search/binary-search/README.pt-BR.md
  24. +1 −1 src/algorithms/search/binary-search/binarySearch.js
  25. +44 −0 src/algorithms/stack/valid-parentheses/README.md
  26. +23 −0 src/algorithms/stack/valid-parentheses/__test__/validParentheses.test.js
  27. +42 −0 src/algorithms/stack/valid-parentheses/validParentheses.js
  28. +1 −1 src/algorithms/uncategorized/best-time-to-buy-sell-stocks/README.md
  29. +1 −1 src/algorithms/uncategorized/n-queens/README.md
  30. +1 −1 src/data-structures/bloom-filter/README.md
  31. +78 −0 src/data-structures/disjoint-set/DisjointSetAdhoc.js
  32. +5 −0 src/data-structures/disjoint-set/README.md
  33. +50 −0 src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js
  34. +1 −1 src/data-structures/heap/Heap.js
  35. +115 −0 src/data-structures/heap/MaxHeapAdhoc.js
  36. +117 −0 src/data-structures/heap/MinHeapAdhoc.js
  37. +5 −0 src/data-structures/heap/README.md
  38. +91 −0 src/data-structures/heap/__test__/MaxHeapAdhoc.test.js
  39. +91 −0 src/data-structures/heap/__test__/MinHeapAdhoc.test.js
  40. +6 −6 src/data-structures/linked-list/README.es-ES.md
  41. +13 −13 src/data-structures/linked-list/README.uk-UA.md
  42. +155 −0 src/data-structures/linked-list/README.vi-VN.md
  43. +51 −0 src/data-structures/lru-cache/README.ko-KR.md
  44. +9 −6 src/data-structures/lru-cache/README.md
  45. +22 −0 src/data-structures/queue/README.vi-VN.md
  46. +2 −2 src/data-structures/stack/README.uk-UA.md
  47. +27 −0 src/data-structures/stack/README.vi-VN.md
  48. +1 −1 src/data-structures/tree/README.md
  49. +19 −0 src/data-structures/trie/README.ko-KO.md
  50. +2 −1 src/data-structures/trie/README.md
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
"arrow-body-style": "off",
"no-loop-func": "off"
},
"ignorePatterns": ["*.md", "*.png", "*.jpeg", "*.jpg"],
"settings": {
"react": {
"version": "18.2.0"
6 changes: 4 additions & 2 deletions README.ar-AR.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms)
[![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms)

تحتوي هذا مقالة على أمثلة عديدة تستند إلى الخوارزميات الشائعة وهياكل البيانات في الجافا سكريبت.
تحتوي هذه المقالة على أمثلة عديدة تستند إلى الخوارزميات الشائعة وهياكل البيانات في الجافا سكريبت.

كل خوارزمية وهياكل البيانات لها برنامج README منفصل خاص بها
مع التفسيرات والروابط ذات الصلة لمزيد من القراءة (بما في ذلك تلك
@@ -23,7 +23,9 @@ _اقرأ هذا في لغات أخرى:_
[_Türk_](README.tr-TR.md),
[_Italiana_](README.it-IT.md),
[_Tiếng Việt_](README.vi-VN.md),
[_Deutsch_](README.de-DE.md)
[_Deutsch_](README.de-DE.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

☝ ملاحضة هذا المشروع مخصص للاستخدام لأغراض التعلم والبحث
فقط ، و ** ليست ** معدة للاستخدام في **الإنتاج**
4 changes: 3 additions & 1 deletion README.de-DE.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,9 @@ _Lies dies in anderen Sprachen:_
[_Italiana_](README.it-IT.md),
[_Bahasa Indonesia_](README.id-ID.md),
[_Українська_](README.uk-UA.md),
[_Arabic_](README.ar-AR.md)
[_Arabic_](README.ar-AR.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

_☝ Beachte, dass dieses Projekt nur für Lern- und Forschungszwecke gedacht ist und **nicht** für den produktiven Einsatz verwendet werden soll_

6 changes: 4 additions & 2 deletions README.es-ES.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,9 @@ _Léelo en otros idiomas:_
[_Українська_](README.uk-UA.md),
[_Arabic_](README.ar-AR.md),
[_Tiếng Việt_](README.vi-VN.md),
[_Deutsch_](README.de-DE.md)
[_Deutsch_](README.de-DE.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

*☝ Nótese que este proyecto está pensado con fines de aprendizaje e investigación,
y **no** para ser usado en producción.*
@@ -69,7 +71,7 @@ definen con precisión una secuencia de operaciones.
* **Matemáticas**
* `P` [Manipulación de bits](src/algorithms/math/bits) - asignar/obtener/actualizar/limpiar bits, multiplicación/división por dos, hacer negativo, etc.
* `P` [Factorial](src/algorithms/math/factorial)
* `P` [Número de Fibonacci](src/algorithms/math/fibonacci)
* `P` [Sucesión de Fibonacci](src/algorithms/math/fibonacci)
* `P` [Prueba de primalidad](src/algorithms/math/primality-test) (método de división de prueba)
* `P` [Algoritmo de Euclides](src/algorithms/math/euclidean-algorithm) - calcular el Máximo común divisor (MCD)
* `P` [Mínimo común múltiplo](src/algorithms/math/least-common-multiple) (MCM)
4 changes: 3 additions & 1 deletion README.fr-FR.md
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@ _Lisez ceci dans d'autres langues:_
[_Українська_](README.uk-UA.md),
[_Arabic_](README.ar-AR.md),
[_Tiếng Việt_](README.vi-VN.md),
[_Deutsch_](README.de-DE.md)
[_Deutsch_](README.de-DE.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

## Data Structures

Loading