•Medium•TypeScript
Wiggle Sort IIrearrange array in wiggle pattern (nums[0] < nums[1] > nums[2] < ...) using sorted interleaving.
arrayssortinggreedy
•Medium•Python
Unique Paths IIcount paths from top-left to bottom-right with obstacles using dp with space optimization to O(n).
dynamic-programmingmatrix
•Unknown•C++, Java
Walking Robot Simulationquick reference for walking robot simulation. more notes soon.
c++java
•Medium•TypeScript
Largest Plus Signfind the largest plus sign order by computing longest consecutive 1s in four directions using dp.
dynamic-programmingmatrix
•Unknown•SQL
Movie Ratingquick reference for movie rating. more notes soon.
sql
•Hard•Python
Zuma Gamefind minimum balls needed to clear board using dfs with memoization, trying to form groups of 3+.
dfsbacktrackingmemoization
•Unknown•TypeScript
Game Theoryquick reference for game theory. more notes soon.
typescript
•Hard•PHP
Max Points on a Linefind maximum number of points that lie on the same line using slope calculation and hash map.
hash-tablemathgeometry
•Hard•Python
Candydistribute candy to children based on ratings using two-pass greedy approach.
greedyarrays
•Easy•C
Number of Recent Callsimplement RecentCounter using circular queue to count requests within last 3000ms.
queuedesign
•Hard•PHP
Largest Palindrome Productfind the largest palindrome made from the product of two n-digit numbers using brute force with optimizations.
mathbrute-force
•Medium•PHP
Maximal Squarefind the largest square of 1s in a binary matrix using dynamic programming.
dynamic-programmingmatrix
•Hard•TypeScript
Split Array Largest Sumfind minimum largest sum when splitting array into k subarrays using binary search on answer.
binary-searchgreedyarrays
•Easy•Python
Convert Sorted Array to Binary Search Treebuild balanced bst from sorted array by recursively using middle element as root.
treedivide-and-conquer
•Unknown•Scala
Special Array Iquick reference for special array i. more notes soon.
scala
•Hard•TypeScript
LFU Cacheimplement least frequently used cache with O(1) operations using hash maps and doubly linked lists.
designhash-tablelinked-list
•Hard•Python
Word Ladderfind shortest transformation sequence from beginWord to endWord using bfs.
bfsgraphstring
•Medium•TypeScript
Search a 2D Matrixbinary search on a sorted 2d matrix by treating it as a flattened sorted array.
binary-searchmatrixarrays
•Unknown•Python
Maximum Xor With An Element From Arrayquick reference for maximum xor with an element from array. more notes soon.
python
•Hard•Python
Palindrome Pairsfind all pairs of words that form palindrome when concatenated by checking all prefix/suffix splits.
hash-tablestringtrie
•Hard•Python
Sliding Window Medianfind median for each sliding window using sorted list to maintain window in sorted order.
sliding-windowheapsorted-list
•Medium•TypeScript
Array With Elements Not Equal to Average of Neighborsrearrange array so no element equals the average of its neighbors using sorted interleaving pattern.
arrayssortinggreedy
•Unknown•PHP
Addtwonumbersquick reference for addtwonumbers. more notes soon.
php
•Hard•PHP
Valid Numbervalidate if string represents a valid number using state machine or regex.
stringstate-machine
•Medium•C
Set Matrix Zeroesset entire row and column to zero when element is zero, using first row and column as markers for O(1) space.
matrixarrays
•Unknown•Python
Kth Smallest In Lexicographical Orderquick reference for kth smallest in lexicographical order. more notes soon.
python
•Unknown•Python
Palindrome Partitioning Iiquick reference for palindrome partitioning ii. more notes soon.
python
•Hard•TypeScript
Stamping the Gridcheck if a grid can be fully covered by stamps using prefix sums and 2d difference array.
prefix-summatrixgreedy
•Hard•PHP
Number of Digit Onecount total number of digit 1 appearing in all numbers from 1 to n using digit dp or mathematical analysis.
mathdynamic-programming
•Hard•PHP
Strong Password Checkerfind minimum steps to make password strong by handling length, character types, and repeating sequences.
greedystring
•Unknown•Erlang
1 Bit And 2 Bit Charactersquick reference for 1 bit and 2 bit characters. more notes soon.
erlang
•Unknown•TypeScript
Array With Elements Not Equal To Average Of Neighborsquick reference for array with elements not equal to average of neighbors. more notes soon.
typescript
•Unknown•Python
Candyquick reference for candy. more notes soon.
python
•Unknown•Erlang, PHP
Contains Duplicate 3quick reference for contains duplicate 3. more notes soon.
erlangphp
•Unknown•C++, Python
Convert Sorted Array To Binary Search Treequick reference for convert sorted array to binary search tree. more notes soon.
c++python
•Unknown•PHP
Count Of Range Sumquick reference for count of range sum. more notes soon.
php
•Unknown•TypeScript
Design Neighbor Sum Servicequick reference for design neighbor sum service. more notes soon.
typescript
•Unknown•PHP
First Missing Positivequick reference for first missing positive. more notes soon.
php
•Unknown•PHP
Largest Palindrome Productquick reference for largest palindrome product. more notes soon.
php
•Unknown•TypeScript
Largest Plus Signquick reference for largest plus sign. more notes soon.
typescript
•Unknown•TypeScript
Magic Squares In Gridquick reference for magic squares in grid. more notes soon.
typescript
•Unknown•PHP
Max Points On Linequick reference for max points on line. more notes soon.
php
•Unknown•PHP
Maximal Squarequick reference for maximal square. more notes soon.
php
•Unknown•TypeScript
Maximize Area Of Square Hole In Gridquick reference for maximize area of square hole in grid. more notes soon.
typescript
•Unknown•TypeScript
Maximum Sum Of An Hourglassquick reference for maximum sum of an hourglass. more notes soon.
typescript
•Unknown•Erlang, PHP
Median Of Two Sorted Arraysquick reference for median of two sorted arrays. more notes soon.
erlangphp
•Unknown•Python
Minimum Path Sumquick reference for minimum path sum. more notes soon.
python
•Unknown•PHP
Number Of Digit Onequick reference for number of digit one. more notes soon.
php
•Unknown•Python
Palindrome Pairsquick reference for palindrome pairs. more notes soon.
python
•Unknown•PHP
Regular Expression Matchingquick reference for regular expression matching. more notes soon.
php
•Unknown•Python
Reverse Pairsquick reference for reverse pairs. more notes soon.
python
•Unknown•PHP
Russian Doll Envelopesquick reference for russian doll envelopes. more notes soon.
php
•Unknown•TypeScript
Search A 2d Matrixquick reference for search a 2d matrix. more notes soon.
typescript
•Unknown•C
Set Matrix Zeroesquick reference for set matrix zeroes. more notes soon.
c
•Unknown•TypeScript
Simplify Pathquick reference for simplify path. more notes soon.
typescript
•Unknown•Python
Sliding Window Medianquick reference for sliding window median. more notes soon.
python
•Unknown•TypeScript
Stamping The Gridquick reference for stamping the grid. more notes soon.
typescript
•Unknown•PHP
Strong Password Checkerquick reference for strong password checker. more notes soon.
php
•Unknown•Python
Two Sumquick reference for two sum. more notes soon.
python
•Unknown•Python
Unique Paths Iiquick reference for unique paths ii. more notes soon.
python
•Unknown•PHP
Valid Numberquick reference for valid number. more notes soon.
php
•Unknown•TypeScript
Wiggle Sort Iiquick reference for wiggle sort ii. more notes soon.
typescript
•Unknown•Erlang, PHP
Wildcard Matchingquick reference for wildcard matching. more notes soon.
erlangphp
•Unknown•Python
Word Ladderquick reference for word ladder. more notes soon.
python
•Unknown•Erlang, PHP
Word Ladder 2quick reference for word ladder 2. more notes soon.
erlangphp
•Unknown•Python
Zuma Gamequick reference for zuma game. more notes soon.
python
•Hard•PHP
Word Ladder IIfind all shortest transformation sequences from beginWord to endWord using bfs with path tracking.
bfsbacktrackinggraph
•Unknown•Python
Insertion Sort Listquick reference for insertion sort list. more notes soon.
python
•Medium•TypeScript
Maximum Sum of an HourglassSliding a fixed hourglass mask through the grid and tracking the best sum with constant-time updates.
arraysprefix-sumgrid
•Medium•TypeScript
Maximize Area of Square Hole in GridBinary search on the side length of the square holes while counting rails removed along each axis.
binary-searchsortinggreedy
•Medium•TypeScript
String Compressioncompress string in-place by replacing consecutive characters with character and count using two pointers.
two-pointersstring
•Unknown•Python
Select Dataquick reference for select data. more notes soon.
python
•Hard•Python
Perfect Rectanglecheck if rectangles form exact rectangle without gaps or overlaps using corner counting and area validation.
geometryhashing
•Medium•TypeScript
Magic Squares in GridCheck every 3×3 window for the 1..9 magic square pattern using center and parity pruning.
gridbrute-forcehashing
•Unknown•C++
Largest Magic Squarequick reference for largest magic square. more notes soon.
c++
•Hard•TypeScript
Frog Jumpdetermine if a frog can cross a river using dfs with memoization, tracking position and last jump distance.
dynamic-programmingdfsmemoization
•Hard•PHP
Regular Expression Matchingmatch string against pattern with . and * using dynamic programming with memoization.
dynamic-programmingstring
•Hard•PHP
Contains Duplicate IIIcheck if there exist two indices with value difference ≤ valueDiff and index difference ≤ indexDiff using sliding window with sorted array.
sliding-windowbinary-searcharrays
•Unknown•Python
add two numbersadd two numbers
linked-list
•Medium•Python
letter combinations of a phone numberletter combinations of a phone number
stringbacktracking
•Hard•Python
median of two sorted arraysmedian of two sorted arrays
arraybinary-search
•Unknown•Python
17 solving leetcode problems17 solving leetcode problems
array
•Unknown•Python
18 solving leetcode problems part218 solving leetcode problems part2
linked-list
•Unknown•Python
leetcode introoverview of my leetcode writeups and plan
math
•Unknown•Python
basic calculatorbasic calculator
stringstackmathrecursion
•Unknown•Python
skyline problemskyline problem
treequeuesortingheap
•Unknown•Python
shortest palindromeshortest palindrome
arraytwo-pointersstringbacktrackingdesign
•Medium•Python
longest substring without repeating characterslongest substring without repeating characters
stringsliding-window
•Medium•Python
longest palindromic substringlongest palindromic substring
stringdynamic-programming
•Medium•Python
container with most watercontainer with most water
arraytwo-pointers
•Medium•Python
3sum3sum
arraytwo-pointers
•Medium•Python
remove nth node from end of listremove nth node from end of list
linked-listtwo-pointers
•Easy•Python
valid parenthesesvalid parentheses
stringstack
•Easy•Python
merge two sorted listsmerge two sorted lists
linked-list
•Medium•Python
generate parenthesesgenerate parentheses
stringbacktracking
•Hard•Python
merge k sorted listsmerge k sorted lists
linked-listheap
•Medium•Python
next permutationnext permutation
array
•Medium•Python
search in rotated sorted arraysearch in rotated sorted array
arraybinary-search
•Medium•Python
find first and last position of element in sorted arrayfind first and last position of element in sorted array
arraybinary-search
•Medium•Python
combination sumcombination sum
arraybacktracking
•Hard•Python
trapping rain watertrapping rain water
arraytwo-pointers
•Medium•Python
permutationspermutations
arraybacktracking
•Medium•Python
rotate imagerotate image
array
•Medium•Python
group anagramsgroup anagrams
hash-tablestring
•Medium•Python
maximum subarraymaximum subarray
arraydynamic-programming
•Unknown•Python
48 my leetcode journey48 my leetcode journey
arrayhash-tablelinked-listtwo-pointersstring
•Hard•TypeScript
critical connections in a networkcritical connections in a network
arraytreegraphstackmath
•Hard•TypeScript
read n characters given read4 ii call multiple timesread n characters given read4 ii call multiple times
arraystringqueuedesign
•Hard•TypeScript
sliding window maximumsliding window maximum
arraytreequeuesliding-windowheap
•Hard•SQL, C
trips and userstrips and users
string
•Hard•Python
integer to english wordsinteger to english words
stringrecursion
•Hard•PHP
expression add operatorsexpression add operators
arraystringdynamic-programmingbacktrackingstack
•Hard•Go
find median from data streamfind median from data stream
arraytreequeuesortingtrie
•Hard•Rust
serialize and deserialize binary treeserialize and deserialize binary tree
stringtreestackdesignrecursion
•Hard•Python
remove invalid parenthesesremove invalid parentheses
stringbacktrackinggreedyqueuedesign
•Hard•JavaScript
burst balloonsburst balloons
arraystringdynamic-programmingbacktrackinggreedy
•Hard•TypeScript
count of smaller numbers after selfcount of smaller numbers after self
arraybinary-searchtreemathsorting
•Hard•C
longest increasing path in a matrixlongest increasing path in a matrix
arraydynamic-programminggraphdfsbfs
•Hard•Python
patching arraypatching array
arraybinary-searchdynamic-programmingbacktrackinggreedy
•Hard•PHP
reconstruct itineraryreconstruct itinerary
arraystringbacktrackinggraphsorting
•Hard•Go
self crossingself crossing
arraygraphmath
•Hard•Rust
data stream as disjoint intervalsdata stream as disjoint intervals
arraylinked-listtreesortingdesign
•Hard•JavaScript
max sum of rectangle no larger than kmax sum of rectangle no larger than k
arraybinary-searchdynamic-programmingsliding-windowmath
•Hard•TypeScript
insert delete getrandom o1 duplicates allowedinsert delete getrandom o1 duplicates allowed
arraylinked-listtreemathtrie
•Hard•C
all oone data structureall oone data structure
arrayhash-tablelinked-liststringtree
•Hard•TypeScript
arithmetic slices ii subsequencearithmetic slices ii subsequence
arraydynamic-programmingbacktrackingstacksliding-window
•Hard•Python
Reverse Pairscount pairs where nums[i] > 2 * nums[j] and i < j using merge sort with counting during merge phase.
divide-and-conquermerge-sort
•Unknown•C++
Minimum Window Substringquick reference for minimum window substring. more notes soon.
c++
•Unknown•Rust
Count Artifacts That Can Be Extractedquick reference for count artifacts that can be extracted. more notes soon.
rust
•Unknown•Python
Get The Size Of A Dataframequick reference for get the size of a dataframe. more notes soon.
python
•Medium•TypeScript
Design Neighbor Sum Servicedesign a service to compute sums of adjacent and diagonal neighbors using prefix sums and linear search.
designmatrixprefix-sum
•Unknown•Python
Find Minimum In Rotated Sorted Array Iiquick reference for find minimum in rotated sorted array ii. more notes soon.
python
•Hard•PHP
Count of Range Sumcount subarrays with sum in range [lower, upper] using prefix sums and merge sort counting.
divide-and-conquerprefix-summerge-sort
•Hard•PHP
Wildcard Matchingmatch string against pattern with ? and * using dynamic programming.
dynamic-programmingstringgreedy
•Medium•Python
Minimum Path Sumfind minimum sum path from top-left to bottom-right using dynamic programming with space optimization.
dynamic-programmingmatrix
•Unknown•C++
Sort Listquick reference for sort list. more notes soon.
c++
•Medium•Python
Building H2Ocoordinate hydrogen and oxygen threads to form water molecules using semaphores and barrier synchronization.
concurrencythreading
•Unknown•Python
Create A Dataframe From Listquick reference for create a dataframe from list. more notes soon.
python
•Easy•Python
Two Sumfind two indices whose values sum to target using hash map for O(n) lookup.
hash-tablearrays
•Hard•PHP
First Missing Positivefind the smallest missing positive integer using array as hash table by placing each number at its correct index.
arrayshashing
•Hard•C
Trapping Rain Water IIcalculate trapped rainwater in 2d elevation map using min heap starting from boundary cells.
heapbfsmatrix
•Unknown•Python
Sort Colorsquick reference for sort colors. more notes soon.
python
•Unknown•Go
Matrix Block Sumquick reference for matrix block sum. more notes soon.
go
•Unknown•Erlang
Root Equals Sum Of Childrenquick reference for root equals sum of children. more notes soon.
erlang
•Hard•PHP
Russian Doll Envelopesfind maximum number of envelopes that can be nested using longest increasing subsequence on sorted envelopes.
dynamic-programmingbinary-searchsorting
•Medium•TypeScript
Simplify Pathnormalize unix-style file paths by handling . and .. components using a stack.
stackstring
•Unknown•Python
Display The First Three Rowsquick reference for display the first three rows. more notes soon.
python
•Unknown•PHP
Letter Cobinations Of A Phone Numberquick reference for letter cobinations of a phone number. more notes soon.
php