Publications
132Yes-Brainer: A Council of AI Models
ITNEXTAuthored![]()
A council of AI models for the decisions that aren't no-brainers — models answer in parallel, debate to consensus, or get judged to a verdict. The article explains the ideas behind my yesbrainer.ai project.
Yes-Brainer: A Council of AI Models
Sidebar.ioFeatured![]()
My yesbrainer.ai project has been featured on Sidebar — the five best design and front-end links of the day.
Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms
Cell PressCited in research![]()
An iScience (Cell Press) paper that lists my trekhleb/machine-learning-octave repository in its Key Resources Table as the logistic-regression resource.
Run Claude Code's --dangerously-skip-permissions Flag Safely with Docker
ITNEXTAuthored![]()
How to run Claude Code with the --dangerously-skip-permissions flag safely inside a Docker sandbox (claude-pod), keeping your home directory, SSH keys, and other projects invisible to the container.
Over 150 algorithms and data structures demonstrated in JavaScript
Node WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been featured in Node Weekly newsletter issue #603 ("Available in eighteen written languages")
Over 150 Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #763 ("Available in eighteen other written languages too")
Seam carving
WikipediaReference docs![]()
My GitHub project trekhleb/js-image-carver is mentioned as an implementation example in the Wikipedia article about the Seam Carving algorithm.
Investigando o Cognitive-Driven Development: Percepções sobre Legibilidade e Manutenção de Código
SBCCited in research![]()
A peer-reviewed SEMISH 2025 paper (Universidade Federal do Pará, SBC) whose code samples were extracted from my trekhleb/javascript-algorithms repository, chosen among repositories "with the highest number of stars, an indicator of quality and acceptance by the community" (section 4.2, footnote 1).
Maze Solver: A React-Based Pathfinding Visualization using BFS and DFS
ZenodoCited in research![]()
A student journal article (Mahatma Gandhi Institute of Technology, Hyderabad; Journal of Advancement in Data Computational Statistics and Data Analysis, 2025) that cites my trekhleb/javascript-algorithms repository.
Developer Technical Interview Notes
Hanbit MediaCited in books![]()
A tech-interview preparation book published by Hanbit Media (South Korea) that cites my GitHub project trekhleb/javascript-algorithms.
Etude expérimentale du couplage entre horloge circadienne et métabolisme
Université de LilleCited in research![]()
A doctoral thesis in biology (molecular and cellular aspects) at Université de Lille, defended on 18 December 2024 (Alan Vandenberghe; supervisors Prof. Marc Lefranc and Dr Alessandro Furlan; HAL tel-05424736), which cites the French Fourier Transform page of my project trekhleb/javascript-algorithms as the source of its Figure 2-11, the discrete Fourier transform applied to a measured signal.
How X (Twitter) Designed Its Home Timeline API: Lessons to Learn
Towards Data ScienceAuthored![]()
A closer look at X’s API: fetching data, linking entities, and solving under-fetching.
API Design of X (Twitter) Home Timeline
TLDR NewsletterFeatured![]()
My article about the API design of X (Twitter) home timeline has been included to TLDR Newsletter.
Investigating Configurations for Automated Crash Reproduction in JavaScript
Victoria University of WellingtonCited in research![]()
A PhD thesis in engineering at Victoria University of Wellington, New Zealand (Philip Oliver, 2024; DOI 10.26686/wgtn.27633654). Its CrashJS benchmark reuses the SynTest-JavaScript dataset, for which five JavaScript projects with high star counts were selected from GitHub: Commander.js, Express, Moment.js, my GitHub project trekhleb/javascript-algorithms, and Lodash.
万星开源推荐: JavaScript Algorithms
JuejinCoverage![]()
A dedicated article on Juejin (掘金), a major Chinese developer platform, about my GitHub project trekhleb/javascript-algorithms.
Sandbox evasion in web browsers: A research paper on detection of sandbox evasion attacks in web browsers using convolutional neural network
Blekinge Institute of TechnologyCited in research![]()
A master's thesis in computer security at Blekinge Institute of Technology, Karlskrona, Sweden (Christoffer Persson and Martin Philipsson, October 2024; supervisor Dr Dragos Ilie; in cooperation with Knowit Cybersecurity & Law), whose Table 3.3 lists my GitHub project trekhleb/javascript-algorithms among the repositories used as "good" (benign) code to build the training and test datasets of its sandbox-evasion detector.
100+ Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #709
Easys Git & GitHub book
Easys PublishingCited in books![]()
A Git & GitHub handbook published by Easys Publishing (South Korea) that cites my GitHub project trekhleb/javascript-algorithms.
System Design Sketches
ITNEXTAuthored![]()
System design sketches for popular system design interview questions.
AI Shift engineering blog (CyberAgent group)
ZennCoverage![]()
My GitHub project trekhleb/javascript-algorithms has been referenced in the AI Shift (CyberAgent group, Japan) corporate engineering blog on Zenn.
Automated Parking Planning with Vision-Based BEV Approach
arXivCited in research![]()
The research paper on automated parking (arXiv:2406.15430) that cites my GitHub project trekhleb/self-parking-car-evolution.
SBOM Generation Tools Under Microscope: A Focus on the npm Ecosystem
ACMCited in research![]()
A peer-reviewed paper from the 39th ACM/SIGAPP Symposium on Applied Computing (SAC 2024; Idaho State University) that evaluates four SBOM generators on the 50 most-starred JavaScript npm projects it found on GitHub. Its Table 2 lists my GitHub project trekhleb/javascript-algorithms first (174 thousand stars, 1,783 kLOC, 11 npm packages), ahead of Bootstrap, three.js and Express.
CrashJS: A NodeJS Benchmark for Automated Crash Reproduction
ACMCited in research![]()
A peer-reviewed paper from the 21st International Conference on Mining Software Repositories (MSR 2024) that uses my GitHub project trekhleb/javascript-algorithms in its benchmark of real-world JavaScript crashes.
SynTest-JavaScript: Automated Unit-Level Test Case Generation for JavaScript
ACMCited in research![]()
A peer-reviewed tool paper from the 17th ACM/IEEE International Workshop on Search-Based and Fuzz Testing (SBFT 2024), by TU Delft, that uses my GitHub project trekhleb/javascript-algorithms as one of the benchmark subject systems.
Law, artificial intelligence, & liability: Assessing the correspondence between Kenyan law and civil liability for autonomous artificially intelligent systems
Strathmore UniversityCited in research![]()
An undergraduate (Bachelor of Laws) research dissertation at Strathmore University Law School, Nairobi (Beatrice Shako, March 2024; supervisor Mr Juan Riofrio; published in the SU+ repository in 2025), which cites my project trekhleb/homemade-machine-learning as its example of an open-source machine-learning library that dispersed contributors can modify (footnote 142).
Mitigation of subway induced vibrations using wave barriers
Bangladesh University of Engineering and TechnologyCited in research![]()
A Master of Science thesis in civil engineering (geotechnical) at Bangladesh University of Engineering and Technology, Dhaka (Mahbubah Ahmed, 2023; repository date 2023-10-16), which cites my article "Playing with Discrete Fourier Transform Algorithm in JavaScript" (its Medium copy) as the source of its Figure 2.7, a view of a signal in the time and frequency domains.
Analyzing a Semantics-Aware Bug Seeding Tool's Efficacy: A qualitative study with the SemSeed tool
ACMCited in research![]()
A peer-reviewed paper from the XXXVII Brazilian Symposium on Software Engineering (SBES 2023) that references my GitHub project trekhleb/javascript-algorithms.
Introduction to Programming for the Organic Chemist
WileyCited in books![]()
A chapter in the Wiley book "Enabling Tools and Techniques for Organic Synthesis" (by Jason M. Stevens, Bristol Myers Squibb) that cites my GitHub project trekhleb/learn-python.
More than 100 Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #652
JavaScript Algorithms cited in a TU Delft Research Project thesis
TU DelftCited in research![]()
A TU Delft Computer Science research project thesis (E. Li, 2023) that cites my GitHub project trekhleb/javascript-algorithms.
Every JavaScript Algorithm
MediumCoverage![]()
A dedicated Medium article that profiles my GitHub project trekhleb/javascript-algorithms and walks through its algorithm collection.
JavaScript-algorithms: Algorithms and data structures implemented in JavaScript (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Over 100 Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #633
Combining GPS and sensors to determine mode of transportation
Metropolia University of Applied SciencesCited in research![]()
A Bachelor of Engineering thesis in Information Technology at Metropolia University of Applied Sciences, Helsinki (Gajalakshan Chandrasegaran, 6 March 2023; 1,186 downloads on Theseus as of 2026-10-26), which lists my article "Gyro-web: Accessing the device orientation in JavaScript" first among its picture references.
TLDraw offers a collaborative whiteboard without any login
TechCrunchCoverage![]()
My okso.app drawing app is mentioned in the TechCrunch article related to TLDraw app
JS Image Carver: Content-Aware Image Resizer and Object Remover
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/js-image-carver has been included to JavaScript Weekly newsletter issue #618
Smart City Management Using Machine Learning Techniques
Virginia Commonwealth UniversityCited in research![]()
A Master of Science thesis in Electrical and Computer Engineering at Virginia Commonwealth University, Richmond (Mostafa Zaman, December 2022; advisor Dr Sherif Abdelwahed; DOI 10.25772/QA5Q-SX30), whose Figure 2 "A map of Machine learning techniques" is the map from my GitHub project trekhleb/homemade-machine-learning, cited as reference 88.
Guess What: Test Case Generation for Javascript with Unsupervised Probabilistic Type Inference
SpringerCited in research![]()
A peer-reviewed paper from the 14th International Symposium on Search-Based Software Engineering (SSBSE 2022), published in Springer's Lecture Notes in Computer Science, that uses my GitHub project trekhleb/javascript-algorithms for test case generation experiments.
Psalm Text Generator Comparison Between English and Korean Using LSTM Blocks in a Recurrent Neural Network
KIICECited in research![]()
A paper from the Korea Institute of Information and Communication Engineering 2022 Fall Conference (Hanbat National University) that cites the "Shakespeare Text Generation (using RNN LSTM)" notebook from my GitHub project trekhleb/machine-learning-experiments as a demonstration of RNN/LSTM text generation (reference 4).
Performance Benchmarking of PyScript and Comparative Results with Javascript
IEEECited in research![]()
A peer-reviewed paper from the 2022 IEEE 13th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON) that benchmarks PyScript against JavaScript and cites my GitHub project trekhleb/javascript-algorithms (reference 13).
Data Structures Sketches (okso.app)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Dbux-PDG: An Interactive Program Dependency Graph for Data Structures and Algorithms
IEEECited in research![]()
A peer-reviewed paper from the IEEE Working Conference on Software Visualization (VISSOFT 2022) that uses algorithms from my GitHub project trekhleb/javascript-algorithms as its analysis examples.
Reference 23 of the paper reads "Trekhleb, Oleksii. (2018) Javascript algorithms. [Online]. Available: https://github.com/trekhleb/javascript-algorithms".
OkSo app in Changelog podcast
ChangelogFeatured![]()
My okso.app has been mentioned in the Changelog podcast #6
A drawing app to express, grasp, and organize your thoughts and ideas
ChangelogFeatured![]()
My okso.app drawing app has been featured in the Changelog News.
Think & Play: Classifying left and right hand motor imagery EEG signals by using dry electrodes for real-time BCI gaming
Utrecht UniversityCited in research![]()
A master's thesis in Artificial Intelligence at Utrecht University, Faculty of Science (Hunter Sterk, 16 June 2022; research supported by Sogeti), which cites my article "Playing with Discrete Fourier Transform Algorithm in JavaScript" as the source of its Figure 3.9, the Fourier transform of EEG data (reference 63).
Ukrainian developers — about the benefits of participating in open source (in UA)
DOUCoverage![]()
The article discusses the growth and challenges of open-source development in Ukraine, highlighting notable Ukrainian contributors and projects, the community's role in fostering collaboration, and how open-source tools are being leveraged to support Ukraine
Content-Aware Image Resizing in JavaScript
CodeProjectAuthored![]()
JavaScript implementation of so-called Seam Carving algorithm for content-aware image resizing
JavaScript data types and data structures
Mozilla MDN Web DocsReference docs![]()
My GitHub project trekhleb/javascript-algorithms is mentioned as an implementation example in the MDN Web Docs article.
The link was proposed by an independent contributor and merged by MDN's reviewers on December 30, 2021 (mdn/content pull request #11589); it is still on the page (last modified July 8, 2025).
Application of Deep Learning Techniques for the Impedance-based SHM to the Oil & Gas Industry
Universidade de BrasíliaCited in books![]()
A book chapter published by the University of Brasília (in "Fundamental Concepts and Models for the Direct Problem", 2022) that cites my GitHub project trekhleb/homemade-machine-learning.
Over 100 Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #570, "The Best of JavaScript Weekly in 2021" (Top Code & Tools of 2021 section)
On the Real-World Interactivity Potential of Minimalistic Knitted Sensors at the Intersection of Artificial Intelligence and User Experience
Drexel UniversityCited in research![]()
A PhD dissertation at Drexel University, Philadelphia (Denisa Qori McDonald, December 2021; DOI 10.17918/00000901), whose Figure 3.2, an example of the Levenshtein distance algorithm, is the "Saturday to Sunday" edit-distance illustration from the Levenshtein Distance page of my project trekhleb/javascript-algorithms, cited as reference 130 ("Trekhleb, Oleksii. Levenshtein distance").
Content-aware image resizing in JavaScript
ChangelogFeatured![]()
My article about the seam-carving algorithm (trekhleb/js-image-carver) has been featured in Changelog News.
Over 100 Algorithms and Data Structures Demonstrated in JS
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #561
JavaScript Algorithms and Data Structures (2018) (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Free resources to promote your next startup (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News 2nd page. The link leads to the Hacker News archive for that day where the mention can be found.
Why is explainability so important right now?
Towards Data ScienceCoverage![]()
My article about the "Genetic algorithm learns how to park a car" has been mentioned in this Towards Data Science publication.
A self-parking car in 500 lines of code
ChangelogFeatured![]()
My article about trekhleb/self-parking-car-evolution has been featured in Changelog News.
Self-Parking Car Evolution
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/self-parking-car-evolution has been included to JavaScript Weekly newsletter issue #558
Show HN: Self-Parking Car Evolution (trekhleb.dev)
Hacker NewsFeatured![]()
Published on Hacker News 2nd page. The link leads to the Hacker News archive for that day where the mention can be found.
Self-Parking Car in <500 Lines of Code
Towards Data ScienceAuthored![]()
Training the car to do self-parking using a genetic algorithm
A fun look at content-aware image resizing in JavaScript with seam carving
JavaScript WeeklyFeatured![]()
My article "Content-aware image resizing in JavaScript" (trekhleb.dev) has been linked in the Quick Bits section of JavaScript Weekly newsletter issue #549
Designing an Extensible PBT Framework to Support Multiple Search Strategies
Universidade do PortoCited in research![]()
A master's dissertation (Mestrado Integrado em Engenharia Informática e Computação) at the Faculty of Engineering of the University of Porto (Rui Jorge Leão Guedes, 28 July 2021; supervisor Prof. Hugo Sereno Ferreira; DOI 10.34626/qf8v-q994), which uses the Stack implementation from my project trekhleb/javascript-algorithms as one of its six evaluation benchmarks for property-based-testing search strategies (Section 7.3.2.2 and Table 7.2; results in Section 7.5.2 and Appendix C).
Binary representation of floating-point numbers (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News 2nd page. The link leads to the Hacker News archive for that day where the mention can be found.
Binary representation of the floating-point numbers
Towards Data ScienceAuthored![]()
Interactive example of how the floating-point numbers like -27.156 are stored in binary format in a computer's memory
Statically Detecting JavaScript Obfuscation and Minification Techniques in the Wild
IEEECited in research![]()
A peer-reviewed paper from the 51st Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN 2021) that cites my article "Top 33 JavaScript Projects on GitHub" as the source of the popular GitHub projects used to build its corpus of regular JavaScript files (reference 46).
Content-aware image resizing in JavaScript
HackerNoonAuthored![]()
JavaScript implementation of so-called Seam Carving algorithm for the content-aware image resizing and object removal. A dynamic programming approach is applied to optimize the resizing time.
Seam Carving: Content-Aware Image Resizing in JavaScript
Bram.usCoverage![]()
A dedicated review of my trekhleb/js-image-carver project by Bram Van Damme (Bramus), a Chrome Developer Relations Engineer at Google.
Dynamic Programming vs. Divide-and-Conquer (2018) (trekhleb.dev)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
js-image-carver: Content-Aware Image Resizer and Object Remover
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/js-image-carver has been included to JavaScript Weekly newsletter issue #535
Content-aware image resizing in JavaScript (trekhleb.dev)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Content-Aware Image Resizing in JavaScript
JavaScript in Plain EnglishAuthored![]()
JavaScript implementation of so-called Seam Carving algorithm for the content-aware image resizing and object removal. A dynamic programming approach is applied to optimize the resizing time.
Entwicklung einer nutzergestützten Matching-Software zum Datenaustausch zwischen APIs
Friedrich Schiller University JenaCited in research![]()
A bachelor thesis at Friedrich Schiller University Jena, written at the German Aerospace Center (DLR) Institute of Data Science (Max Möbius, 2021-03-24; open access on DLR's electronic library), whose Figure 3 reproduces the Levenshtein-distance matrix from my article "Dynamic Programming vs Divide-and-Conquer" and cites it as reference 16.
Accessing device orientation in pure JavaScript (trekhleb.dev)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News post about the Gyro-web article.
Sound-based Remote Manufacturing Process Monitoring using Convolutional Neural Network (CNN)
Seoul National UniversityCited in research![]()
A doctoral dissertation in engineering at Seoul National University, Department of Mechanical and Aerospace Engineering, Graduate School (Jisoo Kim, February 2021), which cites my article "Playing with Discrete Fourier Transform Algorithm in JavaScript" as the source of its Figure 16 "Concept of Fourier Transform" (reference 85).
SegmentFault Tech Weekly (staff editorial)
SegmentFaultCoverage![]()
My GitHub project trekhleb/javascript-algorithms has been featured in the SegmentFault (思否) Tech Weekly staff editorial.
Understanding Promotion-as-a-Service on GitHub
ACMCited in research![]()
A peer-reviewed paper from the 36th Annual Computer Security Applications Conference (ACSAC 2020; Tsinghua University, University of Delaware, Virginia Tech, UT Dallas, UC Irvine, Fudan University) on paid fake-star services. Its Table 2 lists my GitHub project trekhleb/homemade-machine-learning (8,749 stars in December 2018) among the well-known "Popular Author" repositories — beside Facebook Research's and Alibaba's — that fake accounts star in order to look like normal users.
Making the Printed Links Clickable Using TensorFlow 2 Object Detection API
PyCoder's WeeklyFeatured![]()
My article about the trekhleb/links-detector project has been featured in PyCoder's Weekly issue #450.
How To Build Links Detector That Making Links in Your Book Clickable
HackerNoonAuthored![]()
In this article I'm solving the issue of making the printed links (i.e. in a book or in a magazine) clickable via your smartphone camera. We will use TensorFlow 2 Object Detection API to train a custom object detector model to find positions and bounding boxes of the sub-strings like https:// in the text image (i.e. in smartphone camera stream).
Over 100 JavaScript Algorithms and Data Structures Demonstrated
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #517
Making the Printed Links Clickable Using TensorFlow 2 Object Detection API
Towards Data ScienceAuthored![]()
In this article I'm solving the issue of making the printed links (i.e. in a book or in a magazine) clickable via your smartphone camera. We will use TensorFlow 2 Object Detection API to train a custom object detector model to find positions and bounding boxes of the sub-strings like https:// in the text image (i.e. in smartphone camera stream).
The significance of bug report elements
SpringerCited in research![]()
Soltani, Hermans and Bäck (Leiden University) selected my GitHub project trekhleb/javascript-algorithms as one of the 50 most popular JavaScript projects on GitHub, by stars and forks, for the dataset of this peer-reviewed study: Table 4 lists the repository and Table 5 reports the mining of its issue tracker.
The Response of Mobile Applications to Crisis in Canada
McMaster UniversityCited in research![]()
A Master of Science (eHealth) thesis at McMaster University, Hamilton, Canada (Noella Noronha, August 2020). Its COVID-19 chapter reviews the online dashboards that let the public follow the pandemic and cites my COVID-19 Dashboard (trekhleb.github.io/covid-19) among them (reference 43).
Estudo comparativo de normas na área de danos estruturais causados por vibrações impulsivas
Universidade do PortoCited in research![]()
An MSc dissertation in civil engineering (FEUP, Universidade do Porto, 2020) that adapts a figure from my article "Playing with Discrete Fourier Transform Algorithm in JavaScript" (Figure 5.6) and cites the article in its bibliography.
NanoNeuron — 7 simple JS functions that explain how machines learn
Towards Data ScienceAuthored![]()
7 simple JavaScript functions that will give you a feeling of how machines can actually “learn”.
Generating cooking recipes using TensorFlow and LSTM Recurrent Neural Network: A step-by-step guide
KDnuggetsAuthored![]()
A character-level LSTM (Long short-term memory) RNN (Recurrent Neural Network) is trained on ~100k recipes dataset using TensorFlow. The model suggested the recipes "Cream Soda with Onions", "Puff Pastry Strawberry Soup", "Zucchini flavor Tea", and "Salmon Mousse of Beef and Stilton Salad with Jalapenos". Yum!? Follow along this detailed guide with code to create your own recipe-generating chef.
[Book] JavaScript Algorithms
NewlineAuthored![]()
Pass your algorithms interview with confidence by learning data structures and algorithms in JavaScript. The book should help engineers to better prepare for tech interviews.
The sample chapter is indexed by Google Scholar (2026-10-25); the two citing works Scholar attributes to it — Dbux-PDG (IEEE VISSOFT 2022) and a PyScript benchmarking paper (IEEE UEMCON 2022) — cite the javascript-algorithms repository, which shares the book's title.
Interactive Machine Learning Experiments
KDnuggetsAuthored![]()
A collection of interactive machine-learning experiments. Each experiment consists of Jupyter/Colab notebook (to see how a model was trained) and demo page (to see a model in action right in your browser).
Generating Cooking Recipes using TensorFlow and LSTM Recurrent Neural Network
PyCoder's WeeklyFeatured![]()
My article about generating cooking recipes with TensorFlow (the machine-learning-experiments project) has been featured in PyCoder's Weekly issue #426.
Generating weird cooking recipes with TensorFlow (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News 2nd page. The link leads to the Hacker News archive for that day where the mention can be found.
Generating cooking recipes using TensorFlow and LSTM Recurrent Neural Network: A step-by-step guide
Towards Data ScienceAuthored![]()
This article contains details of how the recipes generator LSTM model may be trained trained on Python using TensorFlow 2 with Keras API.
How I work: Oleksii Trekhleb, Front-end Engineer at Uber (in UA)
DOUCoverage![]()
About my work, workspace organization, useful tools, life hacks and how I learn new technologies on my pet projects.
Music Genre Detection (TU Delft BSc thesis)
TU DelftCited in research![]()
A TU Delft Bachelor thesis on music genre detection that cites my article on the Fourier Transform from trekhleb/javascript-algorithms.
Interactive Machine Learning Experiments
PyCoder's WeeklyFeatured![]()
My GitHub project trekhleb/machine-learning-experiments has been featured in PyCoder's Weekly issue #420.
Interactive Machine Learning Experiments
Towards Data ScienceAuthored![]()
A collection of interactive machine-learning experiments. Each experiment consists of Jupyter/Colab notebook (to see how a model was trained) and demo page (to see a model in action right in your browser).
CHATssistant: un agent conversationnel pour l'apprentissage de la programmation
Université de NamurCited in research![]()
A master's thesis in computer science (data science) at the University of Namur, Belgium (Maxime Dalla Valle and Antoine Jacques, 2020), whose Figure 14 reproduces the Levenshtein-distance example from my article "Dynamic Programming vs Divide-and-Conquer" and cites it.
NanoNeuron – simple JavaScript functions that explain how machines learn
Hacker NewsletterFeatured![]()
My GitHub project trekhleb/nano-neuron has been included in Hacker Newsletter issue #483 (Favorites section).
JavaScript Algorithms and Data Structures
Node WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been featured in Node Weekly newsletter issue #318
Over 100 JavaScript Algorithms and Data Structures Demonstrated
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #466 (Code & Tools section)
The same issue also featured my GitHub project trekhleb/nano-neuron ("NanoNeuron: 7 Simple Functions to Demo Simple Machine Learning")
NanoNeuron – simple JavaScript functions that explain how machines learn (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Hands-free text editing using voice and gaze
Universität Koblenz-LandauCited in research![]()
A master's thesis in Web Science at Universität Koblenz-Landau, Institute for Web Science and Technologies (Sabin Bhattarai, December 2019; supervisors Prof. Dr. Steffen Staab and Korok Sengupta), which cites the Levenshtein Distance page of my project trekhleb/javascript-algorithms as its reference for the edit-distance metric used in its evaluation (reference 46).
Homemade Machine Learning (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Hands-On Artificial Intelligence for Cybersecurity
PacktCited in books![]()
The book by Alessandro Parisi published by Packt that cites my GitHub project trekhleb/homemade-machine-learning.
Here Are the Most Common JavaScript Algorithms and Data Structures
Better ProgrammingCoverage![]()
The Better Programming article walking through the most common JavaScript algorithms and data structures, based on my GitHub project trekhleb/javascript-algorithms.
Creating React usePosition() hook for getting browser’s geolocation
ITNEXTAuthored![]()
In this article I'm explaining how to create React usePosition() hook to fetch and follow browser’s location.
Explainability of Neural Networks – A Novel Method for Language Models
University of Applied Sciences Upper AustriaCited in research![]()
A master's thesis in the Interactive Media programme at the University of Applied Sciences Upper Austria (FH Oberösterreich), Hagenberg Campus (Christina Grafeneder, June 2019; supervisor FH-Prof. Mag. DI Dr. Andreas Stöckl), whose first character-level LSTM language model was trained on the code of my project trekhleb/javascript-algorithms merged with PubNub's JavaScript SDK (Section 6.1.1, footnote 2).
Technical Interview Preparation Checklist
ITNEXTAuthored![]()
This article is my attempt to summarize common technical interview process steps and to collect in one place some useful insights from recruiters that they normally send to applicants before the interviews.
Development of an Educational Mobile Game Applications for Grade 5 for Knowledge Channel Inc.
ACMCited in research![]()
A peer-reviewed paper from the 2nd International Conference on Information Science and Systems (ICISS 2019, ACM; Technological Institute of the Philippines). Its Section 2.4 describes the Fisher–Yates shuffle used to randomise questions, items and assets in the mobile games and cites the fisher-yates implementation in my GitHub project trekhleb/javascript-algorithms as its source (references 16 and 17).
Homemade Machine Learning is a repository for learning ML in Python with a Jupyter demo
DOUAuthored![]()
Article about the project that contains examples of popular machine learning algorithms implemented in Python with mathematics behind them being explained.
Homemade Machine Learning
PyCoder's WeeklyFeatured![]()
My GitHub project trekhleb/homemade-machine-learning has been featured in PyCoder's Weekly issue #349.
JavaScript Algorithms and Data Structures
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #417 (Top code and tools of 2018)
Homemade Machine Learning in Python
AI Time JournalAuthored![]()
Article about the project that contains examples of popular machine learning algorithms implemented in Python with mathematics behind them being explained.
Homemade Machine Learning in Python
Data Driven InvestorAuthored![]()
Article about the project that contains examples of popular machine learning algorithms implemented in Python with mathematics behind them being explained.
JavaScript Dominated Open Source in 2018
ADTmagCoverage![]()
ADTmag (Application Development Trends) reproduces GitHub's "Top New Projects Based on Stars" chart and names trekhleb/javascript-algorithms among the top new projects of 2018.
GitHub Review Shows JavaScript, Learning Are Top Trends in 2018
Dice InsightsCoverage![]()
Dice Insights on GitHub's 2018 review: "A JavaScript algorithms repo was second place" — the linked repository is trekhleb/javascript-algorithms.
The State of the Octoverse: new open source projects in 2018
GitHub BlogCoverage![]()
GitHub's own report lists trekhleb/javascript-algorithms second among the ten new open-source projects of 2018 by stars in their first 28 days, and names it as an example of the projects with coding examples starred by those new to code.
Algoritmos e estrutura de dados clássicos em JavaScript
iMastersCoverage![]()
A dedicated iMasters article by Diego Pinho (in Portuguese) about my GitHub project trekhleb/javascript-algorithms.
Machine Learning in MatLab/Octave
Data Driven InvestorAuthored![]()
MatLab/Octave examples of popular machine learning algorithms with code examples and mathematics behind them being explained.
Komparacija metoda za oblikovanje algoritma (Comparison of Algorithm Design Methods)
Juraj Dobrila University of PulaCited in research![]()
An undergraduate thesis at the Faculty of Informatics, Juraj Dobrila University of Pula, Croatia (Maja Mandarić, defended 2018-09-26), whose Figure 8 on dynamic programming is "adapted from (Trekhleb, n.d.)" — my article "Dynamic Programming vs Divide-and-Conquer" — and which cites it.
Dynamic Programming vs Divide-and-Conquer
GeeksForGeeksAuthored![]()
In this article I’m trying to explain the difference/similarities between dynamic programming and divide and conquer approaches based on two examples: binary search and minimum edit distance (Levenshtein distance).
Playground and Cheatsheet for Learning Python (in UA)
DOUAuthored![]()
Collection of Python scripts that are split by topics and contain code examples with explanations.
learn-python: Playground and cheatsheet for learning Python
PyCoder's WeeklyFeatured![]()
My GitHub project trekhleb/learn-python has been featured in PyCoder's Weekly issue #332 (Projects section).
Top 33 JavaScript Projects on GitHub (August 2018)
ITNEXTAuthored![]()
My list of the top 33 JavaScript projects on GitHub as of August 2018.
Cited in 2021 by Moog, Demmel, Backes and Fass (Saarland University / CISPA Helmholtz Center) in their IEEE/IFIP DSN paper as the source of the "popular GitHub projects" from which they collected regular JavaScript files to train their detectors.
JavaScript Algorithms and Data Structures
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #396, with the editor's note "We linked this a couple of months ago but it has been substantially improved since then"
Classic Algorithms Implemented in JavaScript
Hacker NewsletterFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included in Hacker Newsletter issue #412 (Learn section).
Classic Algorithms Implemented in JavaScript (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
What I Learned In My Career Developing 50+ Web-Projects, Launching 2 Startups And 2 Open-Source Projects
HowIGotJobAuthored![]()
How to stay productive and to be open to new opportunities (career developing).
Permutations/Combinations Algorithms Cheat Sheets
ITNEXTAuthored![]()
This article briefly describes the difference between mathematical permutations and combinations, explains the main idea behind permutations and combinations algorithms and contains links to algorithms implementation in JavaScript.
Dynamic Programming vs Divide-and-Conquer
ITNEXTAuthored![]()
In this article I’m trying to explain the difference/similarities between dynamic programming and divide and conquer approaches based on two examples: binary search and minimum edit distance (Levenshtein distance).
Indexed by Google Scholar, where three theses cite it (2026-10-25): a University of Namur master's thesis (2020) and a Friedrich Schiller University Jena bachelor thesis written at the German Aerospace Center (2021) reproduce its Levenshtein-distance figure; a Juraj Dobrila University of Pula thesis (2018) adapts its dynamic-programming diagram.
Algorithms and data structures implemented in JS
ChangelogFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been logged in Changelog News by the editor (2018-05-28).
JavaScript Algorithms and Data Structures
JavaScript WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been included to JavaScript Weekly newsletter issue #387 (the newsletter's first selection of the project)
Algorithms and Data Structures Explained and Implemented in JavaScript (github.com/trekhleb)
Hacker NewsFeatured![]()
Published on Hacker News frontpage. The link leads to the Hacker News archive for that day where the mention can be found.
Algorithms and Data Structures in JavaScript
ITNEXTAuthored![]()
Algorithms and data structures implemented in JavaScript with explanations and links to further readings.













































