You've solved hundreds of problems. How many could you solve again?
LeetCode Notes sits beside every problem and captures it in the background, so you can write down the idea, the approach and the mistakes now or later. Then it brings them back before the interview.
The extension takes notes with you while you solve. The web app brings them back before the interview.
Live preview · click around
leetcode.com/problems/two-sum
1. Two Sum
EasyArrayHash Table
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Python3
1class Solution:
2def twoSum(self, nums, target):
3seen = {}
4for i, num in enumerate(nums):
5need = target - num
6if need in seen:
7return [seen[need], i]
8seen[num] = i
9return []
RunAccepted
LeetCode NotesSynced
Now solving
Two Sum
Problem synced from the open LeetCode tab
Solution
1def twoSum(nums, target):
2seen = {}
3for i, num in enumerate(nums):
4need = target - num
5if need in seen:
6return [seen[need], i]
Quick fill
Tags
arrayhash table
Your tags
Folder
Only in the Chrome extension
Your notebook fills itself in.
The extension captures every problem as you solve it, and brings in the ones you solved before you installed it. You add the thinking, now or later.
Runs in the background
Captures while you solve
Open a problem and start solving. The extension picks up the problem, its difficulty, the link and your code, and saves them in the background. Write notes alongside as you go, or come back later and fill them in.
Now solvingCapturing
15. 3SumMedium
Problem, difficulty and linkjust now
Your codePython3 · 14 lines
Saved in the backgroundauto
Key insight & approach
Add now, or later
Mistakes made
Add now, or later
Two PointersArraysSortingAdd to review
Chrome extension only
Import everything you've already solved
Connect your leetcode.com account once. Every problem you've solved comes in with your latest accepted code. Add the approach and mistakes when you're ready, tag it, or put it on your review plan. Notes you've already written are never overwritten.
Ttaylorkim · leetcode.comConnected
Imported 0 solved problems0%
Imported 228 · Skipped 3 that already had your notes
146. LRU CacheMediumcode imported
Add notesAdd to review
200. Number of IslandsMediumcode imported
On review plan
42. Trapping Rain WaterHardcode imported
Add notesAdd to review
Features
Everything you learn, in one place.
The extension captures. The web app organizes, reviews and exports.
Review that asks first
Write what you remember, reveal your notes, then mark it Forgot it, Shaky or Got it.
Card 3 of 13
3Sum
Mediumtwo pointersNoted 15 days ago
Before you look: what's the approach?
Sort first. Fix nums[i], two pointers on the rest, skip duplicates. O(n²).
Reveal my notes
Forgot itShakyGot it
Up next13 due
3SumNow
Coin ChangeShaky last time
Number of IslandsForgot last time
Valid ParenthesesDue today
Trapping Rain WaterDue today
Shaky and forgotten cards come back first.
Import what you've solved
Chrome extension only. Bring in every problem you've solved on leetcode.com, then add notes or put it on your review plan.
Ttaylorkim · leetcode.comConnected
Importing…0%
Your latest Accepted solution for every solved problem. Notes you already wrote are left alone.
See your patterns
Difficulty split and the topics you lean on most.
0notes
array
two pointers
hash table
dynamic programming
Learning paths
Basics to LeetCode 150, with the problems you've already noted checked off.
ComplexityRead
Arrays2 / 3
Strings2 / 3
Hash Maps0 / 2
Linked Lists2 / 2
Stacks1 / 1
Queues0 / 1
Playground
A scratchpad to try an idea before you commit to it.
JavaScriptRun
1const seen = new Map();
2for (let i = 0; i < nums.length; i++) {
3if (seen.has(t - nums[i])) return …
4}
[ 0, 1 ]exit 0
Export anywhere
PDF to read before an interview, Markdown for your notes app, JSON for backups.
PDF
Markdown
JSON
Folders, tags and search
Find any note by title, tag or a line of code.
Arrays & Strings3
Linked Lists8
Trees & Graphs5
Dynamic Programming4
Your next interview will ask something you've solved before.