Publications
155Yes-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.
Code-Flow: Leveraging AI-Assisted Visualization and Knowledge-Graph Integration for Enhanced Code Understanding Within the IDE
IEEECited in research![]()
A paper at the 2026 4th International Conference on Inventive Computing and Informatics (ICICI), Bangalore, 10–12 June 2026 (Meena Rhoshini C, Catherine Jessie J, Tharun M, Geetha M, Senthamizhselvi S and S. Pavithra; IEEE; DOI 10.1109/ICICI68773.2026.11581039), whose full text, as indexed by Google Scholar, contains the address of my project trekhleb/javascript-algorithms.
On the Usage of Emojis to Signal Activism in GitHub Repositories
IEEECited in research![]()
A paper at the 2026 International Conference on Smart Computing, IoT and Machine Learning (SIML), Surakarta, Indonesia, 10–11 June 2026 (Amri Zadi Hudaya, Youmei Fan, Raula Gaikovina Kula, Yusuf Sulistyo Nugroho and Kenichi Matsumoto; IEEE; DOI 10.1109/SIML69834.2026.11621497), on emoji in GitHub README files signalling support for social movements, whose full text, as indexed by Google Scholar, contains the phrase "led by javascript-algorithms (193,622 stars)" — my project trekhleb/javascript-algorithms, identified by its star count.
POP-Profiling – Kontaminationen auf der Spur (TEXTE 07/2026)
Umweltbundesamt (German Environment Agency)Cited in research![]()
The final report of a research project commissioned by the German Environment Agency (Umweltbundesamt) on using artificial-intelligence methods to profile PCB contamination (Alexander Blume, Dornier Power and Heat GmbH; Prof. Dr. Benny Selle, Berliner Hochschule für Technik; completed September 2024, published January 2026), which names the Machine Learning Map of my project trekhleb/homemade-machine-learning among the five sources of its overview figure of machine-learning methods (Figure 9) and lists it in its references.
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")
Dijkstra 算法详细图解 (Dijkstra's algorithm, illustrated step by step)
Ruan Yifeng's WeeklyFeatured![]()
The Chinese page of the illustrated Dijkstra article in my GitHub project trekhleb/javascript-algorithms has been featured in Ruan Yifeng's weekly, issue #373.
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.
European search report on EP 4 566 493 A1, "Method and system for providing recipes for cooking" (BSH Hausgeräte GmbH)
European Patent OfficeCited in patents![]()
The European Patent Office's search report on BSH Hausgeräte's European patent application for generating cooking recipes with a trained recipe generator (application EP 23 21 5292, filed December 2023) lists my article "Generating cooking recipes using TensorFlow and LSTM Recurrent Neural Network: A step-by-step guide" (KDnuggets) among the five documents considered relevant: category A (technological background), claims 1–16, "the whole document". The search was completed in Munich on 7 May 2024 and published with the application on 11 June 2025.
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.
10 GitHub Repositories to Master Python
KDnuggetsCoverage![]()
A KDnuggets article by Abid Ali Awan, KDnuggets Assistant Editor, presenting "10 essential GitHub repositories" for mastering Python. My repository trekhleb/learn-python is second: "a comprehensive resource that emphasizes learning Python through hacking. It covers a wide range of Python functions and best practices, making it suitable for learners at different levels."
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).
Software Carpentry (EN.540.635), Lecture 12: Data Mining, APIs, and an Introduction to Machine Learning
Johns Hopkins UniversityCited in research![]()
Lecture slides of Software Carpentry (EN.540.635), a 3-credit, peer-taught course for new graduate students in Chemical and Biomolecular Engineering at Johns Hopkins University (Whiting School of Engineering), whose slide "Machine Learning… in a Nut Shell" (slide 31 of 37) reproduces the Machine Learning Map of my project trekhleb/homemade-machine-learning and cites the repository.
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.
Why Python keeps growing, explained
GitHub BlogCoverage![]()
A GitHub Blog article by Rizel Scarlett on Python's growth in GitHub's Octoverse report. Its section "How to get started with Python" lists my repository trekhleb/learn-python among "a few helpful GitHub repositories to help you get started with Python": "Grab some tips from this cheatsheet: Check out this collection of Python scripts with code examples and explanations for learning the language."
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").
Uvod u umjetnu inteligenciju (Introduction to Artificial Intelligence)
University of Split, FESBCited in books![]()
A university textbook in the University of Split textbook series (Darko Stipaničev, Ljiljana Šerić and Maja Braović; Faculty of Electrical Engineering, Mechanical Engineering and Naval Architecture, Split; approved by the University Senate in December 2020; first edition November 2021; ISBN 978-953-290-108-5), whose worked example of anomaly detection in server latency and throughput (Figure 6-28, footnote 102) is adapted from my project trekhleb/machine-learning-octave.
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
Catch the Replay: Santiago Ortiz's Data Citizens Lecture
University of Miami, Frost Institute for Data Science & ComputingCoverage![]()
The University of Miami's Frost Institute for Data Science & Computing on the opening lecture of the second year of its Data Citizens distinguished lecture series (Santiago Ortiz, September 23, 2021; host Professor Alberto Cairo): in the part "How Machines 'Think' About Data" the lecturer used my article "Content-Aware Image Resizing in JavaScript" to explain the seam-carving algorithm, and the page lists the article among the references mentioned in the lecture.
JavaScript 的浮点数格式 (Binary representation of floating-point numbers)
Ruan Yifeng's WeeklyFeatured![]()
My article on binary floating-point numbers in trekhleb/javascript-algorithms has been featured in Ruan Yifeng's weekly, issue #171, with my illustration.
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).
learn-python: 一份以代码和注释方式讲解 Python 的免费教程
HelloGitHubFeatured![]()
My GitHub project trekhleb/learn-python has been featured in HelloGitHub Vol. 62 (entry 21, Python section).
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.
JS image carver
Ruan Yifeng's WeeklyFeatured![]()
My project trekhleb/js-image-carver has been featured in Ruan Yifeng's weekly, issue #156, with an explanation of seam carving and a link to my tutorial.
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.
Content-Aware Image Resizing in Go and JavaScript
InfoQCoverage![]()
An InfoQ news article by Bruno Couriol, an InfoQ editor. It opens with my use of dynamic programming to speed up content-aware image resizing and discusses my JavaScript implementation and the JS Image Carver app, with links to my article, the demo and the repository. InfoQ Japan published a translation on 2021-06-13.
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.
Software Requirements for Disaster Management Systems: A Study of Literature and Practice
ISCRAMCited in research![]()
A paper in the proceedings of ISCRAM 2021, the 18th International Conference on Information Systems for Crisis Response and Management (Bruna Diirr, UNIRIO; Vânia de Oliveira Neves, UFF; Marcus Vinícius Vasconcelos de Almeida Cunha, Ana Beatriz Kapps dos Reis and Jairo Francisco de Souza, UFJF; Virginia Tech, Blacksburg, 2021, pp. 1042–1054), whose repository mining lists my COVID-19 Dashboard repository (trekhleb/covid-19) among the GitHub projects studied (Table 4, R38, Group 2: projects with 100 to 249 stars).
Web-Tipps: Frauen in Filmen, Algorithmen in JavaScript, Billie Eilish
c't magazinCoverage![]()
The web tips of c't magazin (Merlin Schumacher and Sylvester Tremmel; print c't 1/2021) recommend my repository trekhleb/javascript-algorithms in the item "Algorithmen und Datenstrukturen – in JavaScript": it "eignet sich gut zur Wiederauffrischung und als Nachschlagewerk" (is well suited for refreshing your knowledge and as a reference work). Common and lesser-known ideas are each explained in a README, with one or more example implementations in JavaScript, and the code is well commented.
Implementação de Algoritmos de Correção Automática de Tom
Universidade Federal do Espírito SantoCited in research![]()
An electrical-engineering graduation project (Projeto de Graduação) at the Universidade Federal do Espírito Santo, Vitória, Brazil (Marcos Corrêa Barcelos Junior, approved 11 December 2020; advisor Prof. Dr. Jorge Leonid Aching Samatelo), on automatic pitch correction, which cites my article "Playing with Discrete Fourier Transform Algorithm in JavaScript" as the source of one of its illustrations.
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.
A Hierarchical Feature Extraction Pipeline using Resting-state fMRI for Autism Classification
New York Scientific Data SummitCited in research![]()
A talk at the 2019 New York Scientific Data Summit (June 12–14, 2019; hosted by Columbia University's Data Science Institute; a series established by Brookhaven National Laboratory) by Qian Wang, Jongwoo Choi and Xiaofu He (New York State Psychiatric Institute and Columbia University), whose classification method (random-forest feature selection with a logistic-regression classifier, slide 17) links the logistic-regression implementation of my project trekhleb/machine-learning-octave.
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).
NexttPOS Delivery App: Aplicació mòbil per a la restauració
Universitat Autònoma de BarcelonaCited in research![]()
A bachelor's final project (Treball de Fi de Grau) in Computer Engineering at the Universitat Autònoma de Barcelona, Escola d'Enginyeria (Daniel Muñoz Vidal, February 2019; tutor Lluís Gesa Boté), a delivery app whose routing solves the Travelling Salesman Problem; it cites my project trekhleb/javascript-algorithms as its reference for the problem (reference 15).
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.
GitHub上已超过2900星!这份有原理、有代码、有Demo的算法资源火了 (Over 2,900 stars on GitHub! This algorithms resource with theory, code and demos is taking off)
QbitAICoverage![]()
An article by QbitAI (量子位), a Chinese media outlet covering artificial intelligence and frontier technology, about my project Homemade Machine Learning (byline 乾明). Its section "谁干的好事?" ("Who did this?") introduces me by name, as a Ukrainian engineer then working at EPAM Systems, with my photo, and explains the project's purpose: to implement machine-learning algorithms from scratch rather than with library one-liners. 51CTO republished it on 2019-01-04.
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.
JavaScript 算法与数据结构 (JavaScript Algorithms and Data Structures)
Ruan Yifeng's WeeklyFeatured![]()
My GitHub project trekhleb/javascript-algorithms (its Chinese README) has been featured in Ruan Yifeng's weekly, issue #8.
Top Hill Method - A New Sorting Approach to Reduce Execution Time
i-manager PublicationsCited in research![]()
A journal article in i-manager's Journal on Software Engineering, vol. 12 no. 4, April–June 2018 (Sandeep Kumar Sharma, Poornima University, Jaipur, and Debabrat Bharali, Assam Down Town University, Guwahati; DOI 10.26634/jse.12.4.14588), which cites the Linked List page of my project trekhleb/javascript-algorithms as its reference for the data structure its sorting method is built on (reference 3).
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: 包含了多种基于 JavaScript 的算法与数据结构
HelloGitHubFeatured![]()
My GitHub project trekhleb/javascript-algorithms has been featured in HelloGitHub Vol. 26 (entry 13, JavaScript section).
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.














































