•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•C++, Python, TypeScript
0001 Two Sumquick reference for 0001 two sum. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0007 Reverse Integerquick reference for 0007 reverse integer. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0009 Palindrome Numberquick reference for 0009 palindrome number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0013 Roman To Integerquick reference for 0013 roman to integer. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0014 Longest Common Prefixquick reference for 0014 longest common prefix. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0020 Valid Parenthesesquick reference for 0020 valid parentheses. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0021 Merge Two Sorted Listsquick reference for 0021 merge two sorted lists. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0026 Remove Duplicates From Sorted Arrayquick reference for 0026 remove duplicates from sorted array. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0027 Remove Elementquick reference for 0027 remove element. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0028 Find The Index Of The First Occurrence In A Stringquick reference for 0028 find the index of the first occurrence in a string. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0035 Search Insert Positionquick reference for 0035 search insert position. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0058 Length Of Last Wordquick reference for 0058 length of last word. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0066 Plus Onequick reference for 0066 plus one. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0067 Add Binaryquick reference for 0067 add binary. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0069 Sqrtxquick reference for 0069 sqrtx. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0070 Climbing Stairsquick reference for 0070 climbing stairs. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0083 Remove Duplicates From Sorted Listquick reference for 0083 remove duplicates from sorted list. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0088 Merge Sorted Arrayquick reference for 0088 merge sorted array. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0094 Binary Tree Inorder Traversalquick reference for 0094 binary tree inorder traversal. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0100 Same Treequick reference for 0100 same tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0101 Symmetric Treequick reference for 0101 symmetric tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0104 Maximum Depth Of Binary Treequick reference for 0104 maximum depth of binary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0107 Binary Tree Level Order Traversal Iiquick reference for 0107 binary tree level order traversal ii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0108 Convert Sorted Array To Binary Search Treequick reference for 0108 convert sorted array to binary search tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0110 Balanced Binary Treequick reference for 0110 balanced binary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0111 Minimum Depth Of Binary Treequick reference for 0111 minimum depth of binary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0112 Path Sumquick reference for 0112 path sum. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0118 Pascals Trianglequick reference for 0118 pascals triangle. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0119 Pascals Triangle Iiquick reference for 0119 pascals triangle ii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0121 Best Time To Buy And Sell Stockquick reference for 0121 best time to buy and sell stock. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0125 Valid Palindromequick reference for 0125 valid palindrome. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0136 Single Numberquick reference for 0136 single number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0141 Linked List Cyclequick reference for 0141 linked list cycle. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0144 Binary Tree Preorder Traversalquick reference for 0144 binary tree preorder traversal. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0145 Binary Tree Postorder Traversalquick reference for 0145 binary tree postorder traversal. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0155 Min Stackquick reference for 0155 min stack. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0160 Intersection Of Two Linked Listsquick reference for 0160 intersection of two linked lists. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0168 Excel Sheet Column Titlequick reference for 0168 excel sheet column title. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0169 Majority Elementquick reference for 0169 majority element. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0171 Excel Sheet Column Numberquick reference for 0171 excel sheet column number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0190 Reverse Bitsquick reference for 0190 reverse bits. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0191 Number Of 1 Bitsquick reference for 0191 number of 1 bits. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0202 Happy Numberquick reference for 0202 happy number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0203 Remove Linked List Elementsquick reference for 0203 remove linked list elements. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0205 Isomorphic Stringsquick reference for 0205 isomorphic strings. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0206 Reverse Linked Listquick reference for 0206 reverse linked list. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0217 Contains Duplicatequick reference for 0217 contains duplicate. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0219 Contains Duplicate Iiquick reference for 0219 contains duplicate ii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0222 Count Complete Tree Nodesquick reference for 0222 count complete tree nodes. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0225 Implement Stack Using Queuesquick reference for 0225 implement stack using queues. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0226 Invert Binary Treequick reference for 0226 invert binary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0228 Summary Rangesquick reference for 0228 summary ranges. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0231 Power Of Twoquick reference for 0231 power of two. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0232 Implement Queue Using Stacksquick reference for 0232 implement queue using stacks. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0234 Palindrome Linked Listquick reference for 0234 palindrome linked list. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0235 Lowest Common Ancestor Of A Binary Search Treequick reference for 0235 lowest common ancestor of a binary search tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0237 Delete Node In A Linked Listquick reference for 0237 delete node in a linked list. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0242 Valid Anagramquick reference for 0242 valid anagram. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0257 Binary Tree Pathsquick reference for 0257 binary tree paths. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0258 Add Digitsquick reference for 0258 add digits. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0263 Ugly Numberquick reference for 0263 ugly number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0268 Missing Numberquick reference for 0268 missing number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0278 First Bad Versionquick reference for 0278 first bad version. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0283 Move Zeroesquick reference for 0283 move zeroes. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0290 Word Patternquick reference for 0290 word pattern. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0292 Nim Gamequick reference for 0292 nim game. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0303 Range Sum Query Immutablequick reference for 0303 range sum query immutable. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0326 Power Of Threequick reference for 0326 power of three. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0338 Counting Bitsquick reference for 0338 counting bits. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0342 Power Of Fourquick reference for 0342 power of four. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0344 Reverse Stringquick reference for 0344 reverse string. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0345 Reverse Vowels Of A Stringquick reference for 0345 reverse vowels of a string. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0349 Intersection Of Two Arraysquick reference for 0349 intersection of two arrays. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0350 Intersection Of Two Arrays Iiquick reference for 0350 intersection of two arrays ii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0367 Valid Perfect Squarequick reference for 0367 valid perfect square. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0374 Guess Number Higher Or Lowerquick reference for 0374 guess number higher or lower. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0383 Ransom Notequick reference for 0383 ransom note. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0387 First Unique Character In A Stringquick reference for 0387 first unique character in a string. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0389 Find The Differencequick reference for 0389 find the difference. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0392 Is Subsequencequick reference for 0392 is subsequence. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0401 Binary Watchquick reference for 0401 binary watch. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0404 Sum Of Left Leavesquick reference for 0404 sum of left leaves. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0405 Convert A Number To Hexadecimalquick reference for 0405 convert a number to hexadecimal. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0409 Longest Palindromequick reference for 0409 longest palindrome. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0412 Fizz Buzzquick reference for 0412 fizz buzz. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0414 Third Maximum Numberquick reference for 0414 third maximum number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0415 Add Stringsquick reference for 0415 add strings. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0434 Number Of Segments In A Stringquick reference for 0434 number of segments in a string. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0441 Arranging Coinsquick reference for 0441 arranging coins. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0448 Find All Numbers Disappeared In An Arrayquick reference for 0448 find all numbers disappeared in an array. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0455 Assign Cookiesquick reference for 0455 assign cookies. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0459 Repeated Substring Patternquick reference for 0459 repeated substring pattern. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0461 Hamming Distancequick reference for 0461 hamming distance. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0463 Island Perimeterquick reference for 0463 island perimeter. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0476 Number Complementquick reference for 0476 number complement. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0482 License Key Formattingquick reference for 0482 license key formatting. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0485 Max Consecutive Onesquick reference for 0485 max consecutive ones. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0492 Construct The Rectanglequick reference for 0492 construct the rectangle. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0495 Teemo Attackingquick reference for 0495 teemo attacking. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0496 Next Greater Element Iquick reference for 0496 next greater element i. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0500 Keyboard Rowquick reference for 0500 keyboard row. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0501 Find Mode In Binary Search Treequick reference for 0501 find mode in binary search tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0504 Base 7quick reference for 0504 base 7. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0506 Relative Ranksquick reference for 0506 relative ranks. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0507 Perfect Numberquick reference for 0507 perfect number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0509 Fibonacci Numberquick reference for 0509 fibonacci number. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0520 Detect Capitalquick reference for 0520 detect capital. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0521 Longest Uncommon Subsequence Iquick reference for 0521 longest uncommon subsequence i. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0530 Minimum Absolute Difference In Bstquick reference for 0530 minimum absolute difference in bst. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0541 Reverse String Iiquick reference for 0541 reverse string ii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0543 Diameter Of Binary Treequick reference for 0543 diameter of binary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0551 Student Attendance Record Iquick reference for 0551 student attendance record i. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0557 Reverse Words In A String Iiiquick reference for 0557 reverse words in a string iii. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0559 Maximum Depth Of N Ary Treequick reference for 0559 maximum depth of n ary tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0561 Array Partitionquick reference for 0561 array partition. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0563 Binary Tree Tiltquick reference for 0563 binary tree tilt. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0566 Reshape The Matrixquick reference for 0566 reshape the matrix. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0572 Subtree Of Another Treequick reference for 0572 subtree of another tree. more notes soon.
c++pythontypescript
•Unknown•C++, Python, TypeScript
0575 Distribute Candiesquick reference for 0575 distribute candies. more notes soon.
c++pythontypescript
•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