🌐
GitHub
github.com › trekhleb › javascript-algorithms
GitHub - trekhleb/javascript-algorithms: 📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
This repository contains JavaScript based examples of many popular algorithms and data structures.
Starred by 196K users
Forked by 31.1K users
Languages   JavaScript
People also ask

Is this course really 100% online? Do I need to attend any classes in person?
This course is completely online, so there’s no need to show up to a classroom in person. You can access your lectures, readings and assignments anytime and anywhere via the web or your mobile device.
🌐
coursera.org
coursera.org › browse › computer science › algorithms
JavaScript Algorithms Specialization
Can I just enroll in a single course?
Yes! To get started, click the course card that interests you and enroll. You can enroll and complete the course to earn a shareable certificate. When you subscribe to a course that is part of a Specialization, you’re automatically subscribed to the full Specialization. Visit your learner dashboard to track your progress.
🌐
coursera.org
coursera.org › browse › computer science › algorithms
JavaScript Algorithms Specialization
Can I take the course for free?
No, you cannot take this course for free. When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. If you cannot afford the fee, you can apply for financial aid.
🌐
coursera.org
coursera.org › browse › computer science › algorithms
JavaScript Algorithms Specialization
🌐
GeeksforGeeks
geeksforgeeks.org › dsa › learn-algorithms-with-javascript-tutorial
Learn Algorithms with Javascript | DSA using JavaScript Tutorial - GeeksforGeeks
July 23, 2025 - Given a set of non-negative integers and a value sum, the task is to check if there is a subset of the given set whose sum is equal to the given sum. Below is the implementation of the Subset Sum Problem in javascript: ... // A Dynamic Programming solution for subset sum problem // Returns true if there is a subset of // set[] with sum equal to given sum function isSubsetSum(set, n, sum) { // The value of subset[i][j] will be // true if there is a subset of // set[0..j-1] with sum equal to i let subset = new Array(sum + 1); for(let i = 0; i < sum + 1; i++) { subset[i] = new Array(sum + 1); for
🌐
Pragmatic Bookshelf
pragprog.com › titles › jwjavascript › a-common-sense-guide-to-data-structures-and-algorithms-in-javascript-volume-1
A Common-Sense Guide to Data Structures and Algorithms in JavaScript, Volume 1: Level Up Your Core Programming Skills by Jay Wengrow
Use recursion to solve tricky problems and create algorithms that run exponentially faster than the alternatives. Dig into advanced data structures such as binary trees and graphs to help scale specialized applications such as social networks ...
🌐
GitHub
github.com › jeantimex › javascript-problems-and-solutions
GitHub - jeantimex/javascript-problems-and-solutions: :trident: A collection of JavaScript problems and solutions for studying algorithms.
:trident: A collection of JavaScript problems and solutions for studying algorithms. - jeantimex/javascript-problems-and-solutions
Starred by 537 users
Forked by 157 users
Languages   JavaScript 100.0% | JavaScript 100.0%
🌐
DEV Community
dev.to › swastikyadav › algorithms-in-javascript-with-visual-examples-gh3
Algorithms in JavaScript with visual examples. - DEV Community
January 25, 2024 - Naive search algorithm is used to find if a string contains a given substring. For example, check if "helloworld" contains the substring "owo". First loop on the main string ("helloworld"). Run a nested loop on the substring ("owo"). If character does not match then break inner loop else keep looping. If inner loop is completed and got a match, then return true else keep the outer loop going.
🌐
Udemy
udemy.com › development
JavaScript Algorithms and Data Structures Masterclass
February 10, 2026 - Delve into recursion, searching and sorting, data structures, graphs, and Dijkstra's algorithm. ... Jump around course by following prerequisites at the start of each section, using big O and recursion guidance, and study topics like bubble sort, merge sort, and binary heaps. ... Practice a browser-based JavaScript workflow using Chrome snippets to run code without installing software, exploring console logs and data structures like binary search trees and breadth-first search.
Rating: 4.7 ​ - ​ 31K votes
Find elsewhere
🌐
Udemy
udemy.com › it & software
JavaScript Data Structures & Algorithms + LEETCODE Exercises
August 11, 2025 - Learn algorithms—sorting, recursion, dynamic programming—with clarity. Analyze time and space complexity to optimize your coding solutions.
Rating: 4.7 ​ - ​ 3.98K votes
🌐
Coursera
coursera.org › browse › computer science › algorithms
JavaScript Algorithms Specialization
Throughout the specialization, you’ll engage in projects that require you to implement algorithms and solve practical coding challenges, applying your skills to develop solutions for real-world tech problems, such as optimizing search and sorting tasks. ... Effectively utilize string manipulation methods. Recognize and implement a variety of basic algorithms. ... You will learn how to write binary search algorithms. You will learn advanced JavaScript concepts such as recursion and array splitting.
🌐
No Starch Press
nostarch.com › data-structures-and-algorithms-javascript
Data Structures and Algorithms in JavaScript | No Starch Press
September 16, 2025 - Modern JavaScript techniques: Use the latest language features and functional programming principles for cleaner, more efficient code. Performance-focused approach: Analyze and optimize algorithms using Big O notation.
🌐
30 Seconds of Code
30secondsofcode.org › js › algorithm › p › 1
JavaScript Algorithms - 30 seconds of code
Explore how to solve Sudoku puzzles in JavaScript using the wave function collapse algorithm, a constraint-propagation technique. ... Building on top of the TF-IDF and inverted index implementation, we will implement partial search matching to make searching more robust.
🌐
GitHub
github.com › topics › javascript-algorithms
javascript-algorithms · GitHub Topics · GitHub
This repository contains my solutions to the coding exercises in Udemy's Javascript Algorithms and Data Structures Master Class course.
🌐
freeCodeCamp
freecodecamp.org › news › the-working-developers-guide-to-algorithms
Algorithms in Javascript - Binary Search Explained
June 15, 2020 - In classic Scrimba style, it contains ... and work better with algorithms going forward. ... Walkthrough: Jonathan introduces the algorithm conceptually. Implementation: We get our hands dirty by crafting our own versions of the algorithm. Solution: Jonathan shows us his implementation for comparison. You'll get the most out of this course if you have a good understanding of Javascript and are ideally ...
🌐
DEV Community
dev.to › emmabostian › breaking-down-javascript-solutions-to-common-algorithmic-questions-part-1-1228
Breaking Down JavaScript Solutions To Common Algorithmic Questions (Part 1) - DEV Community
February 21, 2019 - Walk through solutions to common algorithms in JavaScript from the brute force method to the final, optimized solution. Tagged with javascript, algorithms.
🌐
DEV Community
dev.to › ebereplenty › algorithm-problems-baby-steps-in-providing-solutions-using-javascript-1edp
Algorithm Problems - Baby Steps in Providing Solutions Using JavaScript - DEV Community
July 19, 2021 - Having broken down this problem into smaller bits, we have a way to keep a copy of the original word given to us using the variable tool provided for us by JavaScript ... Since we cannot just reverse a string, we need to split the word and make it an array using the .split("") method
🌐
DEV Community
dev.to › mattryanmtl › javascript-essentials-a-beginners-guide-to-data-structures-and-algorithms-ap
JavaScript Essentials: A Beginner's Guide to Data Structures and Algorithms - DEV Community
December 5, 2023 - Recursion is a method where the solution to a problem depends on solutions to smaller instances of the same problem. function factorial(x) { if (x === 0) return 1; return x * factorial(x - 1); } console.log(factorial(5)); // Outputs: 120 · That's a wrap on our intro to data structures and algorithms in JavaScript!
🌐
freeCodeCamp
freecodecamp.org › news › introduction-to-algorithms-with-javascript-examples
Introduction to Algorithms Handbook – with JavaScript Examples
September 11, 2024 - A graphic representation of classic algorithm complexities · Note that the same notation is used when talking about both time and space complexity. Say for example we have a function that always creates an array with a single value no matter the input it receives, then the space complexity will be constant O(1), and so on with the other complexity types. To better understand all this, let's go back to our problem and analyze our solution examples.
🌐
Frontend Masters
frontendmasters.com › learn › computer-science
Computer Science Learning Path - Learn Data Structures & Algorithms with JavaScript | Frontend Masters
Gain a fundamental understanding of computer science while coding common algorithms and data structures in JavaScript.
🌐
Amazon
amazon.com › JavaScript-Data-Structures-Algorithms-Understanding › dp › 1484239873
JavaScript Data Structures and Algorithms: An Introduction to Understanding and Implementing Core Data Structure and Algorithm Fundamentals: Bae, Sammie: 9781484239872: Amazon.com: Books
This book covers the practical applications of data structures and algorithms to encryption, searching, sorting, and pattern matching. It is crucial for JavaScript developers to understand how data structures work and how to design algorithms.