trekhleb/javascript-algorithms
View on GitHub ↗ ★ 196,716 JavaScript
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
25 mentions on Hacker News by 18 people: 18 stories, 7 comments · first 2018-05-21 · latest 2025-11-08
20082026
-
▲ 1
Dijkstra's Algorithm in JavaScriptstory by trekhleb · 2025-11-08 · 0 comments
-
…and create issues[1] about using inclusive language... except it was really dumb, for example: https://github.com/trekhleb/javascript-algorithms/pull/875/f... [1] E.g.: https://github.com/EbookFoundation/free-programming-books/pu...
comment by netsharc · 2023-07-18 · in A Grub theme in the style of Minecraft -
…article explains it well: https://www.data-structures-in-practice.com/intrusive-linked... See also: https://github.com/trekhleb/javascript-algorithms/blob/bbbfd... https://github.com/trekhleb/javascript-algorithms/blob/bbbfd... Vs what…
comment by esprehn · 2023-04-08 · in JavaScript-algorithms: Algorithms and data structures implemented in JavaScript -
…would mean in JS land. That said, yeah its a good starting point & I applaud the effort. [1] https://github.com/trekhleb/javascript-algorithms/blob/maste... [2] https://stackoverflow.com/a/7777687
comment by dxbydt · 2023-04-07 · in JavaScript-algorithms: Algorithms and data structures implemented in JavaScript -
▲ 183
JavaScript-algorithms: Algorithms and data structures implemented in JavaScriptstory by kiyanwang · 2023-04-07 · 76 comments
-
▲ 1
Weighted Random Algorithm in JavaScriptstory by todsacerdoti · 2021-10-22 · 0 comments
-
▲ 115
JavaScript Algorithms and Data Structures (2018)story by oleksiitwork · 2021-10-20 · 30 comments
-
▲ 49
Binary representation of floating-point numbersstory by trekhleb · 2021-07-24 · 18 comments
-
▲ 1
JavaScript Algorithms and Data Structuresstory by mariuz · 2021-07-11 · 0 comments
-
▲ 48
JavaScript Algorithms and Data Structures (examples and explanations of each)story by jkchu · 2021-02-02 · 5 comments
-
▲ 2
Algorithms and Data Structures in JavaScriptstory by oleksiitwork · 2020-11-18 · 0 comments
-
▲ 3
JavaScript Algorithms and Data Structuresstory by tambourine_man · 2019-12-13 · 0 comments
-
For comparison. https://github.com/trekhleb/javascript-algorithms/blob/maste...
comment by Unbeliever69 · 2019-08-07 · in Show HN: Data Structures and Algorithms in JavaScript -
https://github.com/trekhleb/javascript-algorithms Discussed here a month ago: https://news.ycombinator.com/item?id=17134831
comment by js2 · 2018-09-23 · in Algorithms Implemented in Python -
https://github.com/trekhleb/javascript-algorithms is way better and has been running for some time, would it help to contribute to that instead?
comment by jayflux · 2018-08-22 · in Preparing for a JavaScript Interview? Check These Algorithms and Data Structures -
▲ 2
Complex Numbers Implementation in JavaScript with Examples and Explanationsstory by trekhleb · 2018-08-11 · 0 comments
-
Already there: https://github.com/trekhleb/javascript-algorithms/blob/maste...
comment by acqq · 2018-07-20 · in Classic Algorithms Implemented in JavaScript -
▲ 249
Classic Algorithms Implemented in JavaScriptstory by trekhleb · 2018-07-20 · 34 comments
-
▲ 2
Algorithms and Data Structures in JavaScript with Explanationsstory by netgusto · 2018-07-18 · 0 comments
-
▲ 2
JavaScript Implementation of Interpolation Search Algorithmstory by trekhleb · 2018-07-18 · 0 comments
-
▲ 1
Minimum edit distance algorithm explained with examples in JavaScriptstory by trekhleb · 2018-06-23 · 0 comments
-
▲ 5
Lots of algorithms and data structures implemented in JavaScriptstory by formikaio · 2018-05-25 · 0 comments
-
▲ 483
Algorithms and Data Structures Explained and Implemented in JavaScriptstory by deckermann · 2018-05-23 · 43 comments
-
▲ 2
Algorithms and data structures implemented in JavaScript with explanationsstory by jesperht · 2018-05-22 · 0 comments
-
▲ 2
Algorithms and data structures implemented on JavaScriptstory by trekhleb · 2018-05-21 · 0 comments