Interview Mastery Board

NeetCode 150

A coding-platform style tracker for the full NeetCode 150: filter by category, difficulty, status, and pattern.

Solved

0/150

Easy

0

Medium

0

Hard

0

Arrays & Hashing

9 visible problems

Pattern Group
Contains Duplicate

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyHash SetTodo
Valid Anagram

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyFrequency MapTodo
Two Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyHash MapTodo
Group Anagrams

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHash KeyTodo
Top K Frequent Elements

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBucket / HeapTodo
Encode and Decode Strings

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumString EncodingTodo
Product of Array Except Self

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumPrefix ProductTodo
Valid Sudoku

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHash SetTodo
Longest Consecutive Sequence

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHash SetTodo

Two Pointers

5 visible problems

Pattern Group
Valid Palindrome

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyOpposite PointersTodo
Two Sum II - Input Array Is Sorted

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumOpposite PointersTodo
3Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumSort + Two PointersTodo
Container With Most Water

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumOpposite PointersTodo
Trapping Rain Water

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardTwo PointersTodo

Sliding Window

6 visible problems

Pattern Group
Best Time to Buy and Sell Stock

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyOne PassTodo
Longest Substring Without Repeating Characters

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumVariable WindowTodo
Longest Repeating Character Replacement

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumVariable WindowTodo
Permutation in String

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumFixed WindowTodo
Minimum Window Substring

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardMinimum WindowTodo
Sliding Window Maximum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardMonotonic DequeTodo

Stack

7 visible problems

Pattern Group
Valid Parentheses

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyStackTodo
Min Stack

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumAuxiliary StackTodo
Evaluate Reverse Polish Notation

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumExpression StackTodo
Generate Parentheses

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBacktrackingTodo
Daily Temperatures

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMonotonic StackTodo
Car Fleet

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMonotonic StackTodo
Largest Rectangle in Histogram

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardMonotonic StackTodo

Binary Search

7 visible problems

Pattern Group
Binary Search

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyClassic Binary SearchTodo
Search a 2D Matrix

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMatrix Binary SearchTodo
Koko Eating Bananas

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBinary Search on AnswerTodo
Find Minimum in Rotated Sorted Array

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumRotated ArrayTodo
Search in Rotated Sorted Array

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumRotated ArrayTodo
Time Based Key-Value Store

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBinary Search in BucketsTodo
Median of Two Sorted Arrays

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardPartition Binary SearchTodo

Linked List

11 visible problems

Pattern Group
Reverse Linked List

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyPointer ReversalTodo
Merge Two Sorted Lists

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDummy NodeTodo
Reorder List

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumSlow Fast + ReverseTodo
Remove Nth Node From End of List

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumTwo PointersTodo
Copy List with Random Pointer

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHash MapTodo
Add Two Numbers

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumCarryTodo
Linked List Cycle

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyFloyd Cycle DetectionTodo
Find the Duplicate Number

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumCycle DetectionTodo
LRU Cache

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHash Map + Doubly Linked ListTodo
Merge k Sorted Lists

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardHeapTodo
Reverse Nodes in k-Group

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardPointer ReversalTodo

Trees

15 visible problems

Pattern Group
Invert Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFSTodo
Maximum Depth of Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFS / BFSTodo
Diameter of Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFS HeightTodo
Balanced Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFS HeightTodo
Same Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFSTodo
Subtree of Another Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyDFSTodo
Lowest Common Ancestor of a Binary Search Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBST TraversalTodo
Binary Tree Level Order Traversal

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBFSTodo
Binary Tree Right Side View

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBFS / DFSTodo
Count Good Nodes in Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumDFS StateTodo
Validate Binary Search Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBST BoundsTodo
Kth Smallest Element in a BST

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumInorderTodo
Construct Binary Tree from Preorder and Inorder Traversal

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumRecursive BuildTodo
Binary Tree Maximum Path Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardDFS GainTodo
Serialize and Deserialize Binary Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardTree EncodingTodo

Heap

7 visible problems

Pattern Group
Kth Largest Element in a Stream

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyMin HeapTodo
Last Stone Weight

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyMax HeapTodo
K Closest Points to Origin

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHeap / QuickselectTodo
Kth Largest Element in an Array

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumHeap / QuickselectTodo
Task Scheduler

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGreedy HeapTodo
Design Twitter

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMerge FeedsTodo
Find Median from Data Stream

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardTwo HeapsTodo

Backtracking

9 visible problems

Pattern Group
Subsets

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumDecision TreeTodo
Combination Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumCandidate ReuseTodo
Permutations

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUsed SetTodo
Subsets II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumDuplicate SkippingTodo
Combination Sum II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumDuplicate SkippingTodo
Word Search

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGrid DFSTodo
Palindrome Partitioning

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumPartition DFSTodo
Letter Combinations of a Phone Number

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumCartesian ProductTodo
N-Queens

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardConstraint TrackingTodo

Graphs

13 visible problems

Pattern Group
Number of Islands

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGrid DFSTodo
Clone Graph

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGraph DFSTodo
Max Area of Island

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGrid DFSTodo
Pacific Atlantic Water Flow

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumReverse DFSTodo
Surrounded Regions

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBoundary DFSTodo
Rotting Oranges

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMulti-Source BFSTodo
Walls and Gates

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMulti-Source BFSTodo
Course Schedule

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumTopological SortTodo
Course Schedule II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumTopological SortTodo
Redundant Connection

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUnion FindTodo
Number of Connected Components in an Undirected Graph

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUnion FindTodo
Graph Valid Tree

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUnion FindTodo
Word Ladder

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardBFSTodo

Dynamic Programming

23 visible problems

Pattern Group
Climbing Stairs

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Easy1-D DPTodo
Min Cost Climbing Stairs

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Easy1-D DPTodo
House Robber

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium1-D DPTodo
House Robber II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium1-D DPTodo
Longest Palindromic Substring

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumExpand Around CenterTodo
Palindromic Substrings

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumExpand Around CenterTodo
Decode Ways

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium1-D DPTodo
Coin Change

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUnbounded KnapsackTodo
Maximum Product Subarray

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMax / Min StateTodo
Word Break

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumString DPTodo
Longest Increasing Subsequence

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumLISTodo
Partition Equal Subset Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium0/1 KnapsackTodo
Unique Paths

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium2-D DPTodo
Longest Common Subsequence

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium2-D DPTodo
Best Time to Buy and Sell Stock with Cooldown

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumState MachineTodo
Coin Change II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumUnbounded KnapsackTodo
Target Sum

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumKnapsackTodo
Interleaving String

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium2-D String DPTodo
Longest Increasing Path in a Matrix

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardDFS MemoTodo
Distinct Subsequences

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Hard2-D String DPTodo
Edit Distance

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Medium2-D String DPTodo
Burst Balloons

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardInterval DPTodo
Regular Expression Matching

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

Hard2-D DPTodo

Greedy

8 visible problems

Pattern Group
Maximum Subarray

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumKadaneTodo
Jump Game

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumReachabilityTodo
Jump Game II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumLayered GreedyTodo
Gas Station

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumGreedy ResetTodo
Hand of Straights

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumOrdered CountsTodo
Merge Triplets to Form Target Triplet

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumFilteringTodo
Partition Labels

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumLast OccurrenceTodo
Valid Parenthesis String

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumRange of BalanceTodo

Advanced Topics

30 visible problems

Pattern Group
Implement Trie (Prefix Tree)

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumTrieTodo
Design Add and Search Words Data Structure

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumTrie DFSTodo
Word Search II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardTrie + BacktrackingTodo
Reconstruct Itinerary

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardEulerian PathTodo
Min Cost to Connect All Points

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMSTTodo
Network Delay Time

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumDijkstraTodo
Swim in Rising Water

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardDijkstra / Union FindTodo
Alien Dictionary

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardTopological SortTodo
Cheapest Flights Within K Stops

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBellman-Ford / BFSTodo
Insert Interval

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumIntervalsTodo
Merge Intervals

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumIntervalsTodo
Non-overlapping Intervals

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumIntervalsTodo
Meeting Rooms

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyIntervalsTodo
Meeting Rooms II

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumIntervalsTodo
Minimum Interval to Include Each Query

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

HardIntervalsTodo
Rotate Image

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Spiral Matrix

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Set Matrix Zeroes

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Happy Number

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyMath & GeometryTodo
Plus One

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyMath & GeometryTodo
Pow(x, n)

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Multiply Strings

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Detect Squares

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumMath & GeometryTodo
Single Number

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyBit ManipulationTodo
Number of 1 Bits

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyBit ManipulationTodo
Counting Bits

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyBit ManipulationTodo
Reverse Bits

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyBit ManipulationTodo
Missing Number

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

EasyBit ManipulationTodo
Sum of Two Integers

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBit ManipulationTodo
Reverse Integer

Identify the pattern, write the brute force, then optimize with the category-specific invariant.

MediumBit ManipulationTodo