leetcode.nsisong.com

LeetCode playbook

I keep short notes for every problem I solve. Explore the breakdowns, complexity calls, and the exact files that live in this repo.

Latest write-ups

MediumTypeScript
Wiggle Sort II

rearrange array in wiggle pattern (nums[0] < nums[1] > nums[2] < ...) using sorted interleaving.

arrayssortinggreedy
MediumPython
Unique Paths II

count paths from top-left to bottom-right with obstacles using dp with space optimization to O(n).

dynamic-programmingmatrix
UnknownC++, Java
Walking Robot Simulation

quick reference for walking robot simulation. more notes soon.

c++java
MediumTypeScript
Largest Plus Sign

find the largest plus sign order by computing longest consecutive 1s in four directions using dp.

dynamic-programmingmatrix
UnknownSQL
Movie Rating

quick reference for movie rating. more notes soon.

sql
HardPython
Zuma Game

find minimum balls needed to clear board using dfs with memoization, trying to form groups of 3+.

dfsbacktrackingmemoization
UnknownTypeScript
Game Theory

quick reference for game theory. more notes soon.

typescript
HardPHP
Max Points on a Line

find maximum number of points that lie on the same line using slope calculation and hash map.

hash-tablemathgeometry
HardPython
Candy

distribute candy to children based on ratings using two-pass greedy approach.

greedyarrays
EasyC
Number of Recent Calls

implement RecentCounter using circular queue to count requests within last 3000ms.

queuedesign
HardPHP
Largest Palindrome Product

find the largest palindrome made from the product of two n-digit numbers using brute force with optimizations.

mathbrute-force
MediumPHP
Maximal Square

find the largest square of 1s in a binary matrix using dynamic programming.

dynamic-programmingmatrix
HardTypeScript
Split Array Largest Sum

find minimum largest sum when splitting array into k subarrays using binary search on answer.

binary-searchgreedyarrays
UnknownScala
Special Array I

quick reference for special array i. more notes soon.

scala
HardTypeScript
LFU Cache

implement least frequently used cache with O(1) operations using hash maps and doubly linked lists.

designhash-tablelinked-list
HardPython
Word Ladder

find shortest transformation sequence from beginWord to endWord using bfs.

bfsgraphstring
MediumTypeScript
Search a 2D Matrix

binary search on a sorted 2d matrix by treating it as a flattened sorted array.

binary-searchmatrixarrays
HardPython
Palindrome Pairs

find all pairs of words that form palindrome when concatenated by checking all prefix/suffix splits.

hash-tablestringtrie
HardPython
Sliding Window Median

find median for each sliding window using sorted list to maintain window in sorted order.

sliding-windowheapsorted-list
UnknownPHP
Addtwonumbers

quick reference for addtwonumbers. more notes soon.

php
HardPHP
Valid Number

validate if string represents a valid number using state machine or regex.

stringstate-machine
MediumC
Set Matrix Zeroes

set entire row and column to zero when element is zero, using first row and column as markers for O(1) space.

matrixarrays
HardTypeScript
Stamping the Grid

check if a grid can be fully covered by stamps using prefix sums and 2d difference array.

prefix-summatrixgreedy
HardPHP
Number of Digit One

count total number of digit 1 appearing in all numbers from 1 to n using digit dp or mathematical analysis.

mathdynamic-programming
HardPHP
Strong Password Checker

find minimum steps to make password strong by handling length, character types, and repeating sequences.

greedystring
UnknownC++, Python, TypeScript
0001 Two Sum

quick reference for 0001 two sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0007 Reverse Integer

quick reference for 0007 reverse integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0009 Palindrome Number

quick reference for 0009 palindrome number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0013 Roman To Integer

quick reference for 0013 roman to integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0014 Longest Common Prefix

quick reference for 0014 longest common prefix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0020 Valid Parentheses

quick reference for 0020 valid parentheses. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0021 Merge Two Sorted Lists

quick reference for 0021 merge two sorted lists. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0027 Remove Element

quick reference for 0027 remove element. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0035 Search Insert Position

quick reference for 0035 search insert position. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0058 Length Of Last Word

quick reference for 0058 length of last word. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0066 Plus One

quick reference for 0066 plus one. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0067 Add Binary

quick reference for 0067 add binary. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0069 Sqrtx

quick reference for 0069 sqrtx. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0070 Climbing Stairs

quick reference for 0070 climbing stairs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0088 Merge Sorted Array

quick reference for 0088 merge sorted array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0094 Binary Tree Inorder Traversal

quick reference for 0094 binary tree inorder traversal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0100 Same Tree

quick reference for 0100 same tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0101 Symmetric Tree

quick reference for 0101 symmetric tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0104 Maximum Depth Of Binary Tree

quick reference for 0104 maximum depth of binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0110 Balanced Binary Tree

quick reference for 0110 balanced binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0111 Minimum Depth Of Binary Tree

quick reference for 0111 minimum depth of binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0112 Path Sum

quick reference for 0112 path sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0118 Pascals Triangle

quick reference for 0118 pascals triangle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0119 Pascals Triangle Ii

quick reference for 0119 pascals triangle ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0125 Valid Palindrome

quick reference for 0125 valid palindrome. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0136 Single Number

quick reference for 0136 single number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0141 Linked List Cycle

quick reference for 0141 linked list cycle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0144 Binary Tree Preorder Traversal

quick reference for 0144 binary tree preorder traversal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0155 Min Stack

quick reference for 0155 min stack. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0168 Excel Sheet Column Title

quick reference for 0168 excel sheet column title. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0169 Majority Element

quick reference for 0169 majority element. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0171 Excel Sheet Column Number

quick reference for 0171 excel sheet column number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0190 Reverse Bits

quick reference for 0190 reverse bits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0191 Number Of 1 Bits

quick reference for 0191 number of 1 bits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0202 Happy Number

quick reference for 0202 happy number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0203 Remove Linked List Elements

quick reference for 0203 remove linked list elements. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0205 Isomorphic Strings

quick reference for 0205 isomorphic strings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0206 Reverse Linked List

quick reference for 0206 reverse linked list. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0217 Contains Duplicate

quick reference for 0217 contains duplicate. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0219 Contains Duplicate Ii

quick reference for 0219 contains duplicate ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0222 Count Complete Tree Nodes

quick reference for 0222 count complete tree nodes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0225 Implement Stack Using Queues

quick reference for 0225 implement stack using queues. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0226 Invert Binary Tree

quick reference for 0226 invert binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0228 Summary Ranges

quick reference for 0228 summary ranges. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0231 Power Of Two

quick reference for 0231 power of two. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0232 Implement Queue Using Stacks

quick reference for 0232 implement queue using stacks. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0234 Palindrome Linked List

quick reference for 0234 palindrome linked list. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0237 Delete Node In A Linked List

quick reference for 0237 delete node in a linked list. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0242 Valid Anagram

quick reference for 0242 valid anagram. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0257 Binary Tree Paths

quick reference for 0257 binary tree paths. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0258 Add Digits

quick reference for 0258 add digits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0263 Ugly Number

quick reference for 0263 ugly number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0268 Missing Number

quick reference for 0268 missing number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0278 First Bad Version

quick reference for 0278 first bad version. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0283 Move Zeroes

quick reference for 0283 move zeroes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0290 Word Pattern

quick reference for 0290 word pattern. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0292 Nim Game

quick reference for 0292 nim game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0303 Range Sum Query Immutable

quick reference for 0303 range sum query immutable. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0326 Power Of Three

quick reference for 0326 power of three. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0338 Counting Bits

quick reference for 0338 counting bits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0342 Power Of Four

quick reference for 0342 power of four. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0344 Reverse String

quick reference for 0344 reverse string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0345 Reverse Vowels Of A String

quick reference for 0345 reverse vowels of a string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0349 Intersection Of Two Arrays

quick reference for 0349 intersection of two arrays. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0350 Intersection Of Two Arrays Ii

quick reference for 0350 intersection of two arrays ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0367 Valid Perfect Square

quick reference for 0367 valid perfect square. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0374 Guess Number Higher Or Lower

quick reference for 0374 guess number higher or lower. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0383 Ransom Note

quick reference for 0383 ransom note. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0389 Find The Difference

quick reference for 0389 find the difference. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0392 Is Subsequence

quick reference for 0392 is subsequence. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0401 Binary Watch

quick reference for 0401 binary watch. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0404 Sum Of Left Leaves

quick reference for 0404 sum of left leaves. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0409 Longest Palindrome

quick reference for 0409 longest palindrome. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0412 Fizz Buzz

quick reference for 0412 fizz buzz. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0414 Third Maximum Number

quick reference for 0414 third maximum number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0415 Add Strings

quick reference for 0415 add strings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0434 Number Of Segments In A String

quick reference for 0434 number of segments in a string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0441 Arranging Coins

quick reference for 0441 arranging coins. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0455 Assign Cookies

quick reference for 0455 assign cookies. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0459 Repeated Substring Pattern

quick reference for 0459 repeated substring pattern. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0461 Hamming Distance

quick reference for 0461 hamming distance. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0463 Island Perimeter

quick reference for 0463 island perimeter. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0476 Number Complement

quick reference for 0476 number complement. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0482 License Key Formatting

quick reference for 0482 license key formatting. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0485 Max Consecutive Ones

quick reference for 0485 max consecutive ones. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0492 Construct The Rectangle

quick reference for 0492 construct the rectangle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0495 Teemo Attacking

quick reference for 0495 teemo attacking. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0496 Next Greater Element I

quick reference for 0496 next greater element i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0500 Keyboard Row

quick reference for 0500 keyboard row. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0504 Base 7

quick reference for 0504 base 7. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0506 Relative Ranks

quick reference for 0506 relative ranks. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0507 Perfect Number

quick reference for 0507 perfect number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0509 Fibonacci Number

quick reference for 0509 fibonacci number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0520 Detect Capital

quick reference for 0520 detect capital. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0521 Longest Uncommon Subsequence I

quick reference for 0521 longest uncommon subsequence i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0541 Reverse String Ii

quick reference for 0541 reverse string ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0543 Diameter Of Binary Tree

quick reference for 0543 diameter of binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0551 Student Attendance Record I

quick reference for 0551 student attendance record i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0557 Reverse Words In A String Iii

quick reference for 0557 reverse words in a string iii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0559 Maximum Depth Of N Ary Tree

quick reference for 0559 maximum depth of n ary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0561 Array Partition

quick reference for 0561 array partition. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0563 Binary Tree Tilt

quick reference for 0563 binary tree tilt. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0566 Reshape The Matrix

quick reference for 0566 reshape the matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0572 Subtree Of Another Tree

quick reference for 0572 subtree of another tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0575 Distribute Candies

quick reference for 0575 distribute candies. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0589 N Ary Tree Preorder Traversal

quick reference for 0589 n ary tree preorder traversal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0590 N Ary Tree Postorder Traversal

quick reference for 0590 n ary tree postorder traversal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0594 Longest Harmonious Subsequence

quick reference for 0594 longest harmonious subsequence. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0598 Range Addition Ii

quick reference for 0598 range addition ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0599 Minimum Index Sum Of Two Lists

quick reference for 0599 minimum index sum of two lists. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0605 Can Place Flowers

quick reference for 0605 can place flowers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0617 Merge Two Binary Trees

quick reference for 0617 merge two binary trees. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0643 Maximum Average Subarray I

quick reference for 0643 maximum average subarray i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0645 Set Mismatch

quick reference for 0645 set mismatch. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0653 Two Sum Iv Input Is A Bst

quick reference for 0653 two sum iv input is a bst. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0657 Robot Return To Origin

quick reference for 0657 robot return to origin. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0661 Image Smoother

quick reference for 0661 image smoother. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0680 Valid Palindrome Ii

quick reference for 0680 valid palindrome ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0682 Baseball Game

quick reference for 0682 baseball game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0696 Count Binary Substrings

quick reference for 0696 count binary substrings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0697 Degree Of An Array

quick reference for 0697 degree of an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0700 Search In A Binary Search Tree

quick reference for 0700 search in a binary search tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0704 Binary Search

quick reference for 0704 binary search. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0705 Design Hashset

quick reference for 0705 design hashset. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0706 Design Hashmap

quick reference for 0706 design hashmap. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0709 To Lower Case

quick reference for 0709 to lower case. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0717 1 Bit And 2 Bit Characters

quick reference for 0717 1 bit and 2 bit characters. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0724 Find Pivot Index

quick reference for 0724 find pivot index. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0728 Self Dividing Numbers

quick reference for 0728 self dividing numbers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0733 Flood Fill

quick reference for 0733 flood fill. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0746 Min Cost Climbing Stairs

quick reference for 0746 min cost climbing stairs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0748 Shortest Completing Word

quick reference for 0748 shortest completing word. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0766 Toeplitz Matrix

quick reference for 0766 toeplitz matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0771 Jewels And Stones

quick reference for 0771 jewels and stones. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0796 Rotate String

quick reference for 0796 rotate string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0804 Unique Morse Code Words

quick reference for 0804 unique morse code words. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0812 Largest Triangle Area

quick reference for 0812 largest triangle area. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0819 Most Common Word

quick reference for 0819 most common word. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0824 Goat Latin

quick reference for 0824 goat latin. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0830 Positions Of Large Groups

quick reference for 0830 positions of large groups. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0832 Flipping An Image

quick reference for 0832 flipping an image. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0836 Rectangle Overlap

quick reference for 0836 rectangle overlap. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0844 Backspace String Compare

quick reference for 0844 backspace string compare. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0859 Buddy Strings

quick reference for 0859 buddy strings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0860 Lemonade Change

quick reference for 0860 lemonade change. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0867 Transpose Matrix

quick reference for 0867 transpose matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0868 Binary Gap

quick reference for 0868 binary gap. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0872 Leaf Similar Trees

quick reference for 0872 leaf similar trees. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0876 Middle Of The Linked List

quick reference for 0876 middle of the linked list. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0883 Projection Area Of 3d Shapes

quick reference for 0883 projection area of 3d shapes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0888 Fair Candy Swap

quick reference for 0888 fair candy swap. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0892 Surface Area Of 3d Shapes

quick reference for 0892 surface area of 3d shapes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0896 Monotonic Array

quick reference for 0896 monotonic array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0897 Increasing Order Search Tree

quick reference for 0897 increasing order search tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0905 Sort Array By Parity

quick reference for 0905 sort array by parity. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0908 Smallest Range I

quick reference for 0908 smallest range i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0914 X Of A Kind In A Deck Of Cards

quick reference for 0914 x of a kind in a deck of cards. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0917 Reverse Only Letters

quick reference for 0917 reverse only letters. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0922 Sort Array By Parity Ii

quick reference for 0922 sort array by parity ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0925 Long Pressed Name

quick reference for 0925 long pressed name. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0929 Unique Email Addresses

quick reference for 0929 unique email addresses. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0933 Number Of Recent Calls

quick reference for 0933 number of recent calls. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0938 Range Sum Of Bst

quick reference for 0938 range sum of bst. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0941 Valid Mountain Array

quick reference for 0941 valid mountain array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0942 Di String Match

quick reference for 0942 di string match. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0944 Delete Columns To Make Sorted

quick reference for 0944 delete columns to make sorted. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0953 Verifying An Alien Dictionary

quick reference for 0953 verifying an alien dictionary. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0965 Univalued Binary Tree

quick reference for 0965 univalued binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0976 Largest Perimeter Triangle

quick reference for 0976 largest perimeter triangle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0977 Squares Of A Sorted Array

quick reference for 0977 squares of a sorted array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0989 Add To Array Form Of Integer

quick reference for 0989 add to array form of integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0993 Cousins In Binary Tree

quick reference for 0993 cousins in binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0997 Find The Town Judge

quick reference for 0997 find the town judge. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
0999 Available Captures For Rook

quick reference for 0999 available captures for rook. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1002 Find Common Characters

quick reference for 1002 find common characters. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1009 Complement Of Base 10 Integer

quick reference for 1009 complement of base 10 integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1018 Binary Prefix Divisible By 5

quick reference for 1018 binary prefix divisible by 5. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1021 Remove Outermost Parentheses

quick reference for 1021 remove outermost parentheses. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1025 Divisor Game

quick reference for 1025 divisor game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1030 Matrix Cells In Distance Order

quick reference for 1030 matrix cells in distance order. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1037 Valid Boomerang

quick reference for 1037 valid boomerang. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1046 Last Stone Weight

quick reference for 1046 last stone weight. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1051 Height Checker

quick reference for 1051 height checker. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1078 Occurrences After Bigram

quick reference for 1078 occurrences after bigram. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1089 Duplicate Zeros

quick reference for 1089 duplicate zeros. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1103 Distribute Candies To People

quick reference for 1103 distribute candies to people. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1108 Defanging An Ip Address

quick reference for 1108 defanging an ip address. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1122 Relative Sort Array

quick reference for 1122 relative sort array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1137 N Th Tribonacci Number

quick reference for 1137 n th tribonacci number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1154 Day Of The Year

quick reference for 1154 day of the year. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1175 Prime Arrangements

quick reference for 1175 prime arrangements. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1184 Distance Between Bus Stops

quick reference for 1184 distance between bus stops. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1185 Day Of The Week

quick reference for 1185 day of the week. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1189 Maximum Number Of Balloons

quick reference for 1189 maximum number of balloons. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1200 Minimum Absolute Difference

quick reference for 1200 minimum absolute difference. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1207 Unique Number Of Occurrences

quick reference for 1207 unique number of occurrences. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1232 Check If It Is A Straight Line

quick reference for 1232 check if it is a straight line. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1260 Shift 2d Grid

quick reference for 1260 shift 2d grid. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1323 Maximum 69 Number

quick reference for 1323 maximum 69 number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1331 Rank Transform Of An Array

quick reference for 1331 rank transform of an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1337 The K Weakest Rows In A Matrix

quick reference for 1337 the k weakest rows in a matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1370 Increasing Decreasing String

quick reference for 1370 increasing decreasing string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1380 Lucky Numbers In A Matrix

quick reference for 1380 lucky numbers in a matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1394 Find Lucky Integer In An Array

quick reference for 1394 find lucky integer in an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1399 Count Largest Group

quick reference for 1399 count largest group. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1408 String Matching In An Array

quick reference for 1408 string matching in an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1417 Reformat The String

quick reference for 1417 reformat the string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1436 Destination City

quick reference for 1436 destination city. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1446 Consecutive Characters

quick reference for 1446 consecutive characters. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1470 Shuffle The Array

quick reference for 1470 shuffle the array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1480 Running Sum Of 1d Array

quick reference for 1480 running sum of 1d array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1486 Xor Operation In An Array

quick reference for 1486 xor operation in an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1496 Path Crossing

quick reference for 1496 path crossing. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1507 Reformat Date

quick reference for 1507 reformat date. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1512 Number Of Good Pairs

quick reference for 1512 number of good pairs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1518 Water Bottles

quick reference for 1518 water bottles. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1528 Shuffle String

quick reference for 1528 shuffle string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1534 Count Good Triplets

quick reference for 1534 count good triplets. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1539 Kth Missing Positive Number

quick reference for 1539 kth missing positive number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1544 Make The String Great

quick reference for 1544 make the string great. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1550 Three Consecutive Odds

quick reference for 1550 three consecutive odds. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1556 Thousand Separator

quick reference for 1556 thousand separator. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1572 Matrix Diagonal Sum

quick reference for 1572 matrix diagonal sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1592 Rearrange Spaces Between Words

quick reference for 1592 rearrange spaces between words. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1598 Crawler Log Folder

quick reference for 1598 crawler log folder. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1603 Design Parking System

quick reference for 1603 design parking system. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1629 Slowest Key

quick reference for 1629 slowest key. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1646 Get Maximum In Generated Array

quick reference for 1646 get maximum in generated array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1652 Defuse The Bomb

quick reference for 1652 defuse the bomb. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1656 Design An Ordered Stream

quick reference for 1656 design an ordered stream. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1668 Maximum Repeating Substring

quick reference for 1668 maximum repeating substring. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1672 Richest Customer Wealth

quick reference for 1672 richest customer wealth. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1678 Goal Parser Interpretation

quick reference for 1678 goal parser interpretation. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1688 Count Of Matches In Tournament

quick reference for 1688 count of matches in tournament. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1694 Reformat Phone Number

quick reference for 1694 reformat phone number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1710 Maximum Units On A Truck

quick reference for 1710 maximum units on a truck. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1720 Decode Xored Array

quick reference for 1720 decode xored array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1732 Find The Highest Altitude

quick reference for 1732 find the highest altitude. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1748 Sum Of Unique Elements

quick reference for 1748 sum of unique elements. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1763 Longest Nice Substring

quick reference for 1763 longest nice substring. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1768 Merge Strings Alternately

quick reference for 1768 merge strings alternately. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1773 Count Items Matching A Rule

quick reference for 1773 count items matching a rule. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1791 Find Center Of Star Graph

quick reference for 1791 find center of star graph. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1800 Maximum Ascending Subarray Sum

quick reference for 1800 maximum ascending subarray sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1816 Truncate Sentence

quick reference for 1816 truncate sentence. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1837 Sum Of Digits In Base K

quick reference for 1837 sum of digits in base k. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1854 Maximum Population Year

quick reference for 1854 maximum population year. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1859 Sorting The Sentence

quick reference for 1859 sorting the sentence. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1863 Sum Of All Subset Xor Totals

quick reference for 1863 sum of all subset xor totals. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1903 Largest Odd Number In String

quick reference for 1903 largest odd number in string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1920 Build Array From Permutation

quick reference for 1920 build array from permutation. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1925 Count Square Sum Triples

quick reference for 1925 count square sum triples. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1929 Concatenation Of Array

quick reference for 1929 concatenation of array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1952 Three Divisors

quick reference for 1952 three divisors. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1971 Find If Path Exists In Graph

quick reference for 1971 find if path exists in graph. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1991 Find The Middle Index In Array

quick reference for 1991 find the middle index in array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
1995 Count Special Quadruplets

quick reference for 1995 count special quadruplets. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2000 Reverse Prefix Of Word

quick reference for 2000 reverse prefix of word. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2022 Convert 1d Array Into 2d Array

quick reference for 2022 convert 1d array into 2d array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2032 Two Out Of Three

quick reference for 2032 two out of three. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2073 Time Needed To Buy Tickets

quick reference for 2073 time needed to buy tickets. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2094 Finding 3 Digit Even Numbers

quick reference for 2094 finding 3 digit even numbers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2103 Rings And Rods

quick reference for 2103 rings and rods. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2129 Capitalize The Title

quick reference for 2129 capitalize the title. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2206 Divide Array Into Equal Pairs

quick reference for 2206 divide array into equal pairs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2235 Add Two Integers

quick reference for 2235 add two integers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2236 Root Equals Sum Of Children

quick reference for 2236 root equals sum of children. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2239 Find Closest Number To Zero

quick reference for 2239 find closest number to zero. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2269 Find The K Beauty Of A Number

quick reference for 2269 find the k beauty of a number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2278 Percentage Of Letter In String

quick reference for 2278 percentage of letter in string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2293 Min Max Game

quick reference for 2293 min max game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2299 Strong Password Checker Ii

quick reference for 2299 strong password checker ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2303 Calculate Amount Paid In Taxes

quick reference for 2303 calculate amount paid in taxes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2315 Count Asterisks

quick reference for 2315 count asterisks. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2319 Check If Matrix Is X Matrix

quick reference for 2319 check if matrix is x matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2325 Decode The Message

quick reference for 2325 decode the message. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2331 Evaluate Boolean Binary Tree

quick reference for 2331 evaluate boolean binary tree. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2347 Best Poker Hand

quick reference for 2347 best poker hand. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2351 First Letter To Appear Twice

quick reference for 2351 first letter to appear twice. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2363 Merge Similar Items

quick reference for 2363 merge similar items. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2367 Number Of Arithmetic Triplets

quick reference for 2367 number of arithmetic triplets. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2395 Find Subarrays With Equal Sum

quick reference for 2395 find subarrays with equal sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2404 Most Frequent Even Element

quick reference for 2404 most frequent even element. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2409 Count Days Spent Together

quick reference for 2409 count days spent together. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2413 Smallest Even Multiple

quick reference for 2413 smallest even multiple. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2418 Sort The People

quick reference for 2418 sort the people. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2427 Number Of Common Factors

quick reference for 2427 number of common factors. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2437 Number Of Valid Clock Times

quick reference for 2437 number of valid clock times. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2451 Odd String Difference

quick reference for 2451 odd string difference. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2460 Apply Operations To An Array

quick reference for 2460 apply operations to an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2465 Number Of Distinct Averages

quick reference for 2465 number of distinct averages. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2469 Convert The Temperature

quick reference for 2469 convert the temperature. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2485 Find The Pivot Integer

quick reference for 2485 find the pivot integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2490 Circular Sentence

quick reference for 2490 circular sentence. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2506 Count Pairs Of Similar Strings

quick reference for 2506 count pairs of similar strings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2540 Minimum Common Value

quick reference for 2540 minimum common value. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2544 Alternating Digit Sum

quick reference for 2544 alternating digit sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2574 Left And Right Sum Differences

quick reference for 2574 left and right sum differences. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2578 Split With Minimum Sum

quick reference for 2578 split with minimum sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2582 Pass The Pillow

quick reference for 2582 pass the pillow. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2595 Number Of Even And Odd Bits

quick reference for 2595 number of even and odd bits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2600 K Items With The Maximum Sum

quick reference for 2600 k items with the maximum sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2614 Prime In Diagonal

quick reference for 2614 prime in diagonal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2643 Row With Maximum Ones

quick reference for 2643 row with maximum ones. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2651 Calculate Delayed Arrival Time

quick reference for 2651 calculate delayed arrival time. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2652 Sum Multiples

quick reference for 2652 sum multiples. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2678 Number Of Senior Citizens

quick reference for 2678 number of senior citizens. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2706 Buy Two Chocolates

quick reference for 2706 buy two chocolates. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2716 Minimize String Length

quick reference for 2716 minimize string length. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2717 Semi Ordered Permutation

quick reference for 2717 semi ordered permutation. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2733 Neither Minimum Nor Maximum

quick reference for 2733 neither minimum nor maximum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2739 Total Distance Traveled

quick reference for 2739 total distance traveled. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2748 Number Of Beautiful Pairs

quick reference for 2748 number of beautiful pairs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2765 Longest Alternating Subarray

quick reference for 2765 longest alternating subarray. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2784 Check If Array Is Good

quick reference for 2784 check if array is good. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2788 Split Strings By Separator

quick reference for 2788 split strings by separator. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2810 Faulty Keyboard

quick reference for 2810 faulty keyboard. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2815 Max Pair Sum In An Array

quick reference for 2815 max pair sum in an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2833 Furthest Point From Origin

quick reference for 2833 furthest point from origin. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2843 Count Symmetric Integers

quick reference for 2843 count symmetric integers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2864 Maximum Odd Binary Number

quick reference for 2864 maximum odd binary number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2899 Last Visited Integers

quick reference for 2899 last visited integers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2917 Find The K Or Of An Array

quick reference for 2917 find the k or of an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2923 Find Champion I

quick reference for 2923 find champion i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2932 Maximum Strong Pair Xor I

quick reference for 2932 maximum strong pair xor i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2937 Make Three Strings Equal

quick reference for 2937 make three strings equal. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2951 Find The Peaks

quick reference for 2951 find the peaks. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
2974 Minimum Number Game

quick reference for 2974 minimum number game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3019 Number Of Changing Keys

quick reference for 3019 number of changing keys. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3024 Type Of Triangle

quick reference for 3024 type of triangle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3028 Ant On The Boundary

quick reference for 3028 ant on the boundary. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3033 Modify The Matrix

quick reference for 3033 modify the matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3046 Split The Array

quick reference for 3046 split the array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3099 Harshad Number

quick reference for 3099 harshad number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3110 Score Of A String

quick reference for 3110 score of a string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3136 Valid Word

quick reference for 3136 valid word. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3151 Special Array I

quick reference for 3151 special array i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3174 Clear Digits

quick reference for 3174 clear digits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3200 Maximum Height Of A Triangle

quick reference for 3200 maximum height of a triangle. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3206 Alternating Groups I

quick reference for 3206 alternating groups i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3210 Find The Encrypted String

quick reference for 3210 find the encrypted string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3232 Find If Digit Game Can Be Won

quick reference for 3232 find if digit game can be won. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3242 Design Neighbor Sum Service

quick reference for 3242 design neighbor sum service. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3248 Snake In Matrix

quick reference for 3248 snake in matrix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3270 Find The Key Of The Numbers

quick reference for 3270 find the key of the numbers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3280 Convert Date To Binary

quick reference for 3280 convert date to binary. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3340 Check Balanced String

quick reference for 3340 check balanced string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3360 Stone Removal Game

quick reference for 3360 stone removal game. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3364 Minimum Positive Sum Subarray

quick reference for 3364 minimum positive sum subarray. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3379 Transformed Array

quick reference for 3379 transformed array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3386 Button With Longest Push Time

quick reference for 3386 button with longest push time. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3407 Substring Matching Pattern

quick reference for 3407 substring matching pattern. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3452 Sum Of Good Numbers

quick reference for 3452 sum of good numbers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3467 Transform Array By Parity

quick reference for 3467 transform array by parity. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3477 Fruits Into Baskets Ii

quick reference for 3477 fruits into baskets ii. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3483 Unique 3 Digit Even Numbers

quick reference for 3483 unique 3 digit even numbers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3492 Maximum Containers On A Ship

quick reference for 3492 maximum containers on a ship. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3498 Reverse Degree Of A String

quick reference for 3498 reverse degree of a string. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3516 Find Closest Person

quick reference for 3516 find closest person. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3536 Maximum Product Of Two Digits

quick reference for 3536 maximum product of two digits. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3582 Generate Tag For Video Caption

quick reference for 3582 generate tag for video caption. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3606 Coupon Code Validator

quick reference for 3606 coupon code validator. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3637 Trionic Array I

quick reference for 3637 trionic array i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3658 Gcd Of Odd And Even Sums

quick reference for 3658 gcd of odd and even sums. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3663 Find The Least Frequent Digit

quick reference for 3663 find the least frequent digit. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3668 Restore Finishing Order

quick reference for 3668 restore finishing order. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3692 Majority Frequency Characters

quick reference for 3692 majority frequency characters. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3697 Compute Decimal Representation

quick reference for 3697 compute decimal representation. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3701 Compute Alternating Sum

quick reference for 3701 compute alternating sum. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3707 Equal Score Substrings

quick reference for 3707 equal score substrings. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3718 Smallest Missing Multiple Of K

quick reference for 3718 smallest missing multiple of k. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3731 Find Missing Elements

quick reference for 3731 find missing elements. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3783 Mirror Distance Of An Integer

quick reference for 3783 mirror distance of an integer. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3794 Reverse String Prefix

quick reference for 3794 reverse string prefix. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3798 Largest Even Number

quick reference for 3798 largest even number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3803 Count Residue Prefixes

quick reference for 3803 count residue prefixes. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3813 Vowel Consonant Score

quick reference for 3813 vowel consonant score. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3827 Count Monobit Integers

quick reference for 3827 count monobit integers. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3833 Count Dominant Indices

quick reference for 3833 count dominant indices. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3838 Weighted Word Mapping

quick reference for 3838 weighted word mapping. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3842 Toggle Light Bulbs

quick reference for 3842 toggle light bulbs. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3856 Trim Trailing Vowels

quick reference for 3856 trim trailing vowels. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3861 Minimum Capacity Box

quick reference for 3861 minimum capacity box. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3866 First Unique Even Element

quick reference for 3866 first unique even element. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3870 Count Commas In Range

quick reference for 3870 count commas in range. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3894 Traffic Signal Color

quick reference for 3894 traffic signal color. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3898 Find The Degree Of Each Vertex

quick reference for 3898 find the degree of each vertex. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3903 Smallest Stable Index I

quick reference for 3903 smallest stable index i. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3908 Valid Digit Number

quick reference for 3908 valid digit number. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3912 Valid Elements In An Array

quick reference for 3912 valid elements in an array. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3921 Score Validator

quick reference for 3921 score validator. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3925 Concatenate Array With Reverse

quick reference for 3925 concatenate array with reverse. more notes soon.

c++pythontypescript
UnknownC++, Python, TypeScript
3945 Digit Frequency Score

quick reference for 3945 digit frequency score. more notes soon.

c++pythontypescript
UnknownPHP
0002 Add Two Numbers

quick reference for 0002 add two numbers. more notes soon.

php
UnknownPython
0063 Unique Paths Ii

quick reference for 0063 unique paths ii. more notes soon.

python
UnknownPython
0064 Minimum Path Sum

quick reference for 0064 minimum path sum. more notes soon.

python
UnknownTypeScript
0071 Simplify Path

quick reference for 0071 simplify path. more notes soon.

typescript
UnknownTypeScript
0074 Search A 2d Matrix

quick reference for 0074 search a 2d matrix. more notes soon.

typescript
UnknownPython
0075 Sort Colors

quick reference for 0075 sort colors. more notes soon.

python
UnknownPython
0147 Insertion Sort List

quick reference for 0147 insertion sort list. more notes soon.

python
UnknownC++
0148 Sort List

quick reference for 0148 sort list. more notes soon.

c++
UnknownPHP
0221 Maximal Square

quick reference for 0221 maximal square. more notes soon.

php
UnknownPython
0322 Coin Change

quick reference for 0322 coin change. more notes soon.

python
UnknownTypeScript
0324 Wiggle Sort Ii

quick reference for 0324 wiggle sort ii. more notes soon.

typescript
UnknownPython
0739 Daily Temperatures

quick reference for 0739 daily temperatures. more notes soon.

python
UnknownTypeScript
0764 Largest Plus Sign

quick reference for 0764 largest plus sign. more notes soon.

typescript
UnknownTypeScript
0840 Magic Squares In Grid

quick reference for 0840 magic squares in grid. more notes soon.

typescript
UnknownGo
1314 Matrix Block Sum

quick reference for 1314 matrix block sum. more notes soon.

go
UnknownSQL
1341 Movie Rating

quick reference for 1341 movie rating. more notes soon.

sql
UnknownSQL
0262 Trips And Users

quick reference for 0262 trips and users. more notes soon.

sql
UnknownPython
0587 Erect The Fence

quick reference for 0587 erect the fence. more notes soon.

python
UnknownPython
0741 Cherry Pickup

quick reference for 0741 cherry pickup. more notes soon.

python
UnknownPython
0749 Contain Virus

quick reference for 0749 contain virus. more notes soon.

python
UnknownPython
0753 Cracking The Safe

quick reference for 0753 cracking the safe. more notes soon.

python
UnknownPython
0770 Basic Calculator Iv

quick reference for 0770 basic calculator iv. more notes soon.

python
UnknownPython
0778 Swim In Rising Water

quick reference for 0778 swim in rising water. more notes soon.

python
UnknownPython
0810 Chalkboard Xor Game

quick reference for 0810 chalkboard xor game. more notes soon.

python
UnknownPython
0850 Rectangle Area Ii

quick reference for 0850 rectangle area ii. more notes soon.

python
UnknownPython
0854 K Similar Strings

quick reference for 0854 k similar strings. more notes soon.

python
UnknownPython
0887 Super Egg Drop

quick reference for 0887 super egg drop. more notes soon.

python
UnknownPython
0906 Super Palindromes

quick reference for 0906 super palindromes. more notes soon.

python
UnknownPython
0927 Three Equal Parts

quick reference for 0927 three equal parts. more notes soon.

python
UnknownPython
0956 Tallest Billboard

quick reference for 0956 tallest billboard. more notes soon.

python
UnknownPython
1032 Stream Of Characters

quick reference for 1032 stream of characters. more notes soon.

python
UnknownPython
Candy

quick reference for candy. more notes soon.

python
UnknownErlang, PHP
Contains Duplicate 3

quick reference for contains duplicate 3. more notes soon.

erlangphp
UnknownPHP
Count Of Range Sum

quick reference for count of range sum. more notes soon.

php
UnknownTypeScript
Design Neighbor Sum Service

quick reference for design neighbor sum service. more notes soon.

typescript
UnknownPHP
First Missing Positive

quick reference for first missing positive. more notes soon.

php
UnknownTypeScript
Largest Plus Sign

quick reference for largest plus sign. more notes soon.

typescript
UnknownTypeScript
Magic Squares In Grid

quick reference for magic squares in grid. more notes soon.

typescript
UnknownPHP
Max Points On Line

quick reference for max points on line. more notes soon.

php
UnknownPHP
Maximal Square

quick reference for maximal square. more notes soon.

php
UnknownTypeScript
Maximum Sum Of An Hourglass

quick reference for maximum sum of an hourglass. more notes soon.

typescript
UnknownErlang, PHP
Median Of Two Sorted Arrays

quick reference for median of two sorted arrays. more notes soon.

erlangphp
UnknownPython
Minimum Path Sum

quick reference for minimum path sum. more notes soon.

python
UnknownPHP
Number Of Digit One

quick reference for number of digit one. more notes soon.

php
UnknownPython
Palindrome Pairs

quick reference for palindrome pairs. more notes soon.

python
UnknownPython
Reverse Pairs

quick reference for reverse pairs. more notes soon.

python
UnknownPHP
Russian Doll Envelopes

quick reference for russian doll envelopes. more notes soon.

php
UnknownTypeScript
Search A 2d Matrix

quick reference for search a 2d matrix. more notes soon.

typescript
UnknownC
Set Matrix Zeroes

quick reference for set matrix zeroes. more notes soon.

c
UnknownTypeScript
Simplify Path

quick reference for simplify path. more notes soon.

typescript
UnknownPython
Sliding Window Median

quick reference for sliding window median. more notes soon.

python
UnknownTypeScript
Stamping The Grid

quick reference for stamping the grid. more notes soon.

typescript
UnknownPHP
Strong Password Checker

quick reference for strong password checker. more notes soon.

php
UnknownPython
Two Sum

quick reference for two sum. more notes soon.

python
UnknownPython
Unique Paths Ii

quick reference for unique paths ii. more notes soon.

python
UnknownPHP
Valid Number

quick reference for valid number. more notes soon.

php
UnknownTypeScript
Wiggle Sort Ii

quick reference for wiggle sort ii. more notes soon.

typescript
UnknownErlang, PHP
Wildcard Matching

quick reference for wildcard matching. more notes soon.

erlangphp
UnknownPython
Word Ladder

quick reference for word ladder. more notes soon.

python
UnknownErlang, PHP
Word Ladder 2

quick reference for word ladder 2. more notes soon.

erlangphp
UnknownPython
Zuma Game

quick reference for zuma game. more notes soon.

python
HardPHP
Word Ladder II

find all shortest transformation sequences from beginWord to endWord using bfs with path tracking.

bfsbacktrackinggraph
UnknownPython
Insertion Sort List

quick reference for insertion sort list. more notes soon.

python
MediumTypeScript
Maximum Sum of an Hourglass

Sliding a fixed hourglass mask through the grid and tracking the best sum with constant-time updates.

arraysprefix-sumgrid
MediumTypeScript
Maximize Area of Square Hole in Grid

Binary search on the side length of the square holes while counting rails removed along each axis.

binary-searchsortinggreedy
MediumTypeScript
String Compression

compress string in-place by replacing consecutive characters with character and count using two pointers.

two-pointersstring
UnknownPython
Select Data

quick reference for select data. more notes soon.

python
HardPython
Perfect Rectangle

check if rectangles form exact rectangle without gaps or overlaps using corner counting and area validation.

geometryhashing
MediumTypeScript
Magic Squares in Grid

Check every 3×3 window for the 1..9 magic square pattern using center and parity pruning.

gridbrute-forcehashing
UnknownC++
Largest Magic Square

quick reference for largest magic square. more notes soon.

c++
HardTypeScript
Frog Jump

determine if a frog can cross a river using dfs with memoization, tracking position and last jump distance.

dynamic-programmingdfsmemoization
HardPHP
Regular Expression Matching

match string against pattern with . and * using dynamic programming with memoization.

dynamic-programmingstring
HardPHP
Contains Duplicate III

check if there exist two indices with value difference ≤ valueDiff and index difference ≤ indexDiff using sliding window with sorted array.

sliding-windowbinary-searcharrays
UnknownPython
leetcode intro

overview of my leetcode writeups and plan

math
UnknownPython
basic calculator

basic calculator

stringstackmathrecursion
UnknownPython
skyline problem

skyline problem

treequeuesortingheap
UnknownPython
shortest palindrome

shortest palindrome

arraytwo-pointersstringbacktrackingdesign
MediumPython
3sum

3sum

arraytwo-pointers
MediumPython
combination sum

combination sum

arraybacktracking
MediumPython
permutations

permutations

arraybacktracking
MediumPython
group anagrams

group anagrams

hash-tablestring
MediumPython
maximum subarray

maximum subarray

arraydynamic-programming
UnknownPython
48 my leetcode journey

48 my leetcode journey

arrayhash-tablelinked-listtwo-pointersstring
HardJavaScript
burst balloons

burst balloons

arraystringdynamic-programmingbacktrackinggreedy
HardPython
patching array

patching array

arraybinary-searchdynamic-programmingbacktrackinggreedy
HardPython
Reverse Pairs

count pairs where nums[i] > 2 * nums[j] and i < j using merge sort with counting during merge phase.

divide-and-conquermerge-sort
MediumTypeScript
Design Neighbor Sum Service

design a service to compute sums of adjacent and diagonal neighbors using prefix sums and linear search.

designmatrixprefix-sum
HardPHP
Count of Range Sum

count subarrays with sum in range [lower, upper] using prefix sums and merge sort counting.

divide-and-conquerprefix-summerge-sort
HardPHP
Wildcard Matching

match string against pattern with ? and * using dynamic programming.

dynamic-programmingstringgreedy
MediumPython
Minimum Path Sum

find minimum sum path from top-left to bottom-right using dynamic programming with space optimization.

dynamic-programmingmatrix
UnknownC++
Sort List

quick reference for sort list. more notes soon.

c++
MediumPython
Building H2O

coordinate hydrogen and oxygen threads to form water molecules using semaphores and barrier synchronization.

concurrencythreading
EasyPython
Two Sum

find two indices whose values sum to target using hash map for O(n) lookup.

hash-tablearrays
HardPHP
First Missing Positive

find the smallest missing positive integer using array as hash table by placing each number at its correct index.

arrayshashing
HardC
Trapping Rain Water II

calculate trapped rainwater in 2d elevation map using min heap starting from boundary cells.

heapbfsmatrix
UnknownPython
Sort Colors

quick reference for sort colors. more notes soon.

python
UnknownGo
Matrix Block Sum

quick reference for matrix block sum. more notes soon.

go
HardPHP
Russian Doll Envelopes

find maximum number of envelopes that can be nested using longest increasing subsequence on sorted envelopes.

dynamic-programmingbinary-searchsorting
MediumTypeScript
Simplify Path

normalize unix-style file paths by handling . and .. components using a stack.

stackstring