Hacker GitHub

← All repos

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

Mentions per year 25 mentions · busiest year 2018 (12)
20082026
  1. ▲ 1
    Dijkstra's Algorithm in JavaScript
    story by trekhleb · 2025-11-08 · 0 comments
  2. …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
  3. …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…
  4. …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
  5. ▲ 183
    JavaScript-algorithms: Algorithms and data structures implemented in JavaScript
    story by kiyanwang · 2023-04-07 · 76 comments
  6. ▲ 1
    Weighted Random Algorithm in JavaScript
    story by todsacerdoti · 2021-10-22 · 0 comments
  7. ▲ 115
    JavaScript Algorithms and Data Structures (2018)
    story by oleksiitwork · 2021-10-20 · 30 comments
  8. ▲ 49
    Binary representation of floating-point numbers
    story by trekhleb · 2021-07-24 · 18 comments
  9. ▲ 1
    JavaScript Algorithms and Data Structures
    story by mariuz · 2021-07-11 · 0 comments
  10. ▲ 48
    JavaScript Algorithms and Data Structures (examples and explanations of each)
    story by jkchu · 2021-02-02 · 5 comments
  11. ▲ 2
    Algorithms and Data Structures in JavaScript
    story by oleksiitwork · 2020-11-18 · 0 comments
  12. ▲ 3
    JavaScript Algorithms and Data Structures
    story by tambourine_man · 2019-12-13 · 0 comments
  13. For comparison. https://github.com/trekhleb/javascript-algorithms/blob/maste...
  14. 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
  15. https://github.com/trekhleb/javascript-algorithms is way better and has been running for some time, would it help to contribute to that instead?
  16. ▲ 2
    Complex Numbers Implementation in JavaScript with Examples and Explanations
    story by trekhleb · 2018-08-11 · 0 comments
  17. Already there: https://github.com/trekhleb/javascript-algorithms/blob/maste...
  18. ▲ 249
    Classic Algorithms Implemented in JavaScript
    story by trekhleb · 2018-07-20 · 34 comments
  19. ▲ 2
    Algorithms and Data Structures in JavaScript with Explanations
    story by netgusto · 2018-07-18 · 0 comments
  20. ▲ 2
    JavaScript Implementation of Interpolation Search Algorithm
    story by trekhleb · 2018-07-18 · 0 comments
  21. ▲ 1
    Minimum edit distance algorithm explained with examples in JavaScript
    story by trekhleb · 2018-06-23 · 0 comments
  22. ▲ 5
    Lots of algorithms and data structures implemented in JavaScript
    story by formikaio · 2018-05-25 · 0 comments
  23. ▲ 483
    Algorithms and Data Structures Explained and Implemented in JavaScript
    story by deckermann · 2018-05-23 · 43 comments
  24. ▲ 2
    Algorithms and data structures implemented in JavaScript with explanations
    story by jesperht · 2018-05-22 · 0 comments
  25. ▲ 2
    Algorithms and data structures implemented on JavaScript
    story by trekhleb · 2018-05-21 · 0 comments