〈 LeetCode - Algorithms

Mar 3, 2023 • ✎ edit

Here are a collection of LeetCode problems which useful to prep for traditional coding interviews.

How to Use

Instructions for decorating leetcode lists with logged-in user data.

Install this user script to enhance the lists below: blog.leetcode.user.js

The user script will request access to a LeetCode URL to fetch your logged-in user’s problem data.

LeetCode Problem Data: https://leetcode.com/api/problems/algorithms/

To generate more lists of problem slugs, use this JavaScript query in your browser’s developer console from any page containing links to LeetCode problems:

[...document.querySelectorAll('a')]
    .map(       li => li.href.match(/\/problems\/([^\/]+)\//))
    .filter(    match => match)
    .map(       match => match[1])

More user scripts at: UserScripts

Algorithms I

Algorithms II

Top 100

Leave a Comment!