Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
bcd1cc1
Upgrade packages and Node versions. (#989)
trekhleb Jan 30, 2023
c9f1caf
Add a recursive version of the Longest Common Substring.
trekhleb Jan 30, 2023
5fc33c0
Add a recursive version of the Longest Common Subsequence.
trekhleb Jan 30, 2023
af08253
Adding Heap time complexities
trekhleb Feb 1, 2023
5a41865
Add links for code examples for K-Means clustering
trekhleb Feb 20, 2023
46aae1d
Add bakers
trekhleb Feb 25, 2023
e95d856
Add bakers
trekhleb Feb 25, 2023
1ad60dc
Add Bucket Sort.
trekhleb Mar 13, 2023
b9304f4
feat: added Ukrainian translation for factorial (#1006)
YaroslavPodorvanov Mar 16, 2023
bbbfd32
Update Bakers.
trekhleb Mar 25, 2023
14c5636
Fix repo build for M1 MacBooks (#1029)
trekhleb Apr 10, 2023
8c5e5f4
Add repo size
trekhleb Apr 10, 2023
76617fa
Update README.md
trekhleb Jul 21, 2023
111ea3d
Update README.md (#1093)
Arpitgoyalgg Mar 9, 2024
8d1f473
Vietsub (#1088)
vivitruong Mar 9, 2024
729bc4d
Add Vietnamese translation for LinkedList (#1086)
vivitruong Mar 9, 2024
8959566
fix binary search typo (#1079)
ir3ne Mar 9, 2024
ac78353
feat: added korean translation for trie (#1071)
hanliang38 Mar 9, 2024
2c67b48
Ad hoc versions of MinHeap, MaxHeap, and DisjointSet (#1117)
trekhleb Mar 9, 2024
e5b5944
Fix four typos (#1139)
Sajjon Jul 13, 2024
9046d80
Update README.md (#1141)
azarboon Jul 13, 2024
d7a41a6
feat: added uzbek language (#1082)
softXengineer Jul 13, 2024
09afeb5
Update .eslintrc, improve UK translation for LinkedList (#1128)
dolgachio Jul 13, 2024
6509304
update LRU Cache translation for ko-KR (#987)
leahincom Jul 13, 2024
0c054f7
Update README.ar-AR.md (#959)
YoussefRabeiii Jul 13, 2024
0e2b257
update the ES README a lenguage correction (#952)
lilipops Jul 13, 2024
351a63a
Update README.md by correcting Turkish lang name (#904)
alaztetik Jul 13, 2024
471e6d0
Add es-ES translation to search/binary-search (#893)
MasterKrab Jul 13, 2024
e7f30a7
Fix typos README.es-ES for linked list (#850)
vcgtz Jul 13, 2024
ca3d16d
Update README.uk-UA.md (#991)
vladsosnov Jul 13, 2024
ae869ef
Added algorithm problem that can be solved using stack data structure
obafemitayor Oct 1, 2023
49e0814
"Italiano" is "italian" in italian :)
gianpaj Dec 20, 2024
bd49909
feat: Added hebrew translation to README in all languages
MaxwellKnight Oct 15, 2024
c5dd048
Fix language code
trekhleb Feb 12, 2025
e40a67b
Move "valid parentheses" to the "Uncategorized" section
trekhleb Feb 12, 2025
c80e10c
Update README notes
trekhleb Oct 22, 2025
5a65dcb
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 7, 2025
a88971d
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 7, 2025
e2ed5cc
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 7, 2025
0627034
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 8, 2025
f41e6ab
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 8, 2025
2834a06
Add Dijkstra algorithm illustrations and explanations
trekhleb Nov 9, 2025
4ba97b9
Delete .github/FUNDING.yml
trekhleb Nov 23, 2025
53f8c0d
Allow graph edges with custom keys
Pierstoval Dec 18, 2019
0d956c2
Make sure graph vertex value is converted to string
Pierstoval Dec 18, 2019
e743df6
Make sure toString is called on edge key when calling edge.toString()
Pierstoval Dec 18, 2019
1503325
Make sure a vertex can't be added twice to a graph
Pierstoval Dec 18, 2019
0248845
Upgrade node version to 22
trekhleb Feb 18, 2026
115e428
Upgrade package dependencies
trekhleb Feb 18, 2026
3cc976b
Fix zero-length combinations
Sean-Kenneth-Doherty May 16, 2026
2c1d2d7
Fixes #2049
trekhleb May 20, 2026
1c21085
chore: fix typo in n-queens test description
saixiaoxi May 28, 2026
fe332ff
docs: fix permutations README grammar
DeoJin Mar 18, 2026
3b53377
Fix MD formatting
trekhleb May 28, 2026
95ead35
fix: correct JSDoc position range to match code validation (1-70)
huizixin Jun 12, 2026
4ed3123
refactor: replace deprecated String.prototype.substr() with substring()
fauzan171 Jun 6, 2026
14e885a
fix(pt-BR): 'file'->'fila' e heading References->Referências em queue
guuszz May 29, 2026
c1221f7
fix(pt-BR): 'criaa'->'cria a' em insertion-sort
guuszz May 29, 2026
758b93a
fix(pt-BR): 'Espaçø'->'Espaço' em linked-list
guuszz May 29, 2026
0ae5dd8
Fix duplicated words in comments and test description
trekhleb Jun 14, 2026
6bb32ed
feat: add Deque data structure with tests and README
shahidansari311 May 4, 2026
7563da8
Deque: use DoublyLinkedList so both ends are truly O(1)
trekhleb Jun 19, 2026
705c3be
Add test for graph reverse with cycle of length two
itsamirhn Jul 30, 2022
dc12f1f
Fix graph reverse method
itsamirhn Jul 30, 2022
0f52fba
Recompute graph edge key after reverse to reflect new direction
trekhleb Jun 26, 2026
5fcf3d7
Add links to sattelite apps (thinking and drawing)
trekhleb Jul 26, 2026
e087629
Add links to sattelite apps (thinking and drawing)
trekhleb Jul 26, 2026
85293e3
Remove Project Backers section
trekhleb Jul 26, 2026
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
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"arrow-body-style": "off",
"no-loop-func": "off"
},
"ignorePatterns": ["*.md", "*.png", "*.jpeg", "*.jpg"],
"settings": {
"react": {
"version": "latest"
"version": "18.2.0"
}
}
}
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x ]
node-version: [ 22.x ]

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -32,4 +32,4 @@ jobs:
run: npm run coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
# npm run test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14
v22
18 changes: 18 additions & 0 deletions BACKERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@

`null`

<!--
<table>
<tr>
<td align="center">
<a href="[PROFILE_URL]">
<img
src="[PROFILE_IMG_SRC]"
width="50"
height="50"
/>
</a>
<br />
<a href="[PROFILE_URL]">[PROFILE_NAME]</a>
</td>
</tr>
</table>
-->

<!--
<ul>
<li>
Expand Down
9 changes: 4 additions & 5 deletions README.ar-AR.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 منفصل خاص بها
مع التفسيرات والروابط ذات الصلة لمزيد من القراءة (بما في ذلك تلك
Expand All @@ -23,10 +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)

## هياكل البيانات

Expand Down
6 changes: 3 additions & 3 deletions README.de-DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +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)

_☝ Beachte, dass dieses Projekt nur für Lern- und Forschungszwecke gedacht ist und **nicht** für den produktiven Einsatz verwendet werden soll_
[_Arabic_](README.ar-AR.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

## Datenstrukturen

Expand Down
9 changes: 4 additions & 5 deletions README.es-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +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)

*☝ Nótese que este proyecto está pensado con fines de aprendizaje e investigación,
y **no** para ser usado en producción.*
[_Deutsch_](README.de-DE.md),
[_Uzbek_](README.uz-UZ.md)
[_עברית_](README.he-IL.md)

## Estructuras de Datos

Expand Down Expand Up @@ -69,7 +68,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)
Expand Down
4 changes: 3 additions & 1 deletion README.fr-FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading