You have to learn the material before you can practice it. These are the free resources we would actually recommend, with a one-line limitation for each so you pick the right one.
freeCodeCamp JavaScript Algorithms and Data Structures covers arrays, stacks, queues, linked lists, trees, graphs, and dynamic programming, with a free verified certificate at the end. It runs in the browser, so there is no setup. About 300 hours, self-paced. Best for JavaScript learners at the beginner-to-intermediate level. Limitation: it teaches the concepts well but gives you little interview-style practice, so pair it with a practice platform. See /platforms/freecodecamp for the full track, or
our ranking of free JavaScript courses.
CS50x (Harvard, free via edX) is the clearest introduction to how computers actually work: computation, Big-O, sorting, memory, and recursion, taught across several languages. If algorithms feel like magic right now, this is the course that fixes that. Best for true beginners who want a strong foundation before they start grinding problems. Limitation: it is a broad CS course, not an interview cram, so you will study things (like C and memory) that are not directly tested. See /courses/cs50-intro-computer-science.
Khan Academy's free algorithms unit gives visual, animated explanations of sorting and searching. It is a good supplement, not a full course. Best for visual learners who need a light primer before a heavier resource. Limitation: it stops well short of the trees, graphs, and dynamic programming that interviews lean on.
MIT OpenCourseWare 6.006, Introduction to Algorithms, is the rigorous option, with real lectures and problem sets. It is overkill for most junior candidates, but excellent if you want to genuinely understand the theory. Best for CS graduates or anyone targeting research-heavy or top-tier roles. Limitation: it assumes you already know Big-O and can write clean code, so it is not a starting point. See /courses/mit-ocw-algorithms-python. For a wider reading list on this, see
our full ranking of free DSA courses.