Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Amazon — 90 Days

Problem List

Two Sum

Add Two Numbers

Longest Substring Without Repeating Characters

Lru Cache

Longest Palindromic Substring

Group Anagrams

Number Of Islands

Palindrome Number

Trapping Rain Water

Koko Eating Bananas

Container With Most Water

Longest Common Prefix

3sum

Valid Parentheses

Best Time To Buy And Sell Stock

Longest Consecutive Sequence

Median Of Two Sorted Arrays

Subarray Sum Equals K

Search In Rotated Sorted Array

Maximum Subarray

Merge Intervals

Reorganize String

Roman To Integer

Merge Two Sorted Lists

Word Search

Find Peak Element

Majority Element

Next Permutation

N Queens

Course Schedule

Merge K Sorted Lists

Reverse Nodes In K Group

Remove Duplicates From Sorted Array

Climbing Stairs

Top K Frequent Elements

Minimum Time To Complete All Deliveries

Letter Combinations Of A Phone Number

Search A 2d Matrix

Pascals Triangle

Copy List With Random Pointer

Combine Two Tables

Single Element In A Sorted Array

Fruit Into Baskets

Generate Parentheses

First Missing Positive

Rotate Array

House Robber

Course Schedule Ii

Lowest Common Ancestor Of A Binary Tree

Daily Temperatures

Reverse Integer

Regular Expression Matching

Merge Sorted Array

Binary Tree Level Order Traversal

Binary Tree Maximum Path Sum

Gas Station

Reverse Linked List

Sliding Window Maximum

Diameter Of Binary Tree

Rotting Oranges

Avoid Flood In The City

Confirmation Rate

Maximum K To Sort A Permutation

Remove Element

Find First And Last Position Of Element In Sorted Array

Add Binary

Sort Colors

Largest Rectangle In Histogram

Balanced Binary Tree

Populating Next Right Pointers In Each Node

Word Ladder

Happy Number

Contains Duplicate

Find Median From Data Stream

House Robber Iii

Partition Equal Subset Sum

Next Greater Element Ii

Managers With At Least 5 Direct Reports

Flood Fill

String To Integer Atoi

Search Insert Position

Jump Game

Sqrtx

Edit Distance

Binary Tree Zigzag Level Order Traversal

Min Stack

Largest Number

Meeting Rooms Ii

Missing Number

Coin Change

Intersection Of Two Arrays

Insert Delete Getrandom O1

Trapping Rain Water Ii

Split Array Largest Sum

Assign Cookies

Rotate Image

Spiral Matrix

Minimum Window Substring

Reverse Linked List Ii

Validate Binary Search Tree

Maximum Depth Of Binary Tree

Candy

Linked List Cycle

Employees Earning More Than Their Managers

Word Search Ii

Kth Largest Element In An Array

Maximal Square

Majority Element Ii

Power Of Two

Product Of Array Except Self

Valid Anagram

Move Zeroes

Find The Duplicate Number

Serialize And Deserialize Binary Tree

Power Of Three

Decode String

Pacific Atlantic Water Flow

String Compression

Lfu Cache

Next Greater Element I

Diagonal Traverse

Valid Triangle Number

Palindromic Substrings

Rotate String

All Nodes Distance K In Binary Tree

Minimum Add To Make Parentheses Valid

Analyze User Website Visit Pattern

Count Square Submatrices With All Ones

Check If Array Is Sorted And Rotated

Recyclable And Low Fat Products

Sum Of Subarray Ranges

Create Hello World Function

Count Bowl Subarrays

4sum

Find The Index Of The First Occurrence In A String

Valid Sudoku

Text Justification

Set Matrix Zeroes

Subsets

Same Tree

Surrounded Regions

Single Number

Insertion Sort List

Second Highest Salary

Delete Node In A Linked List

Game Of Life

Power Of Four

Find K Pairs With Smallest Sums

Ransom Note

Evaluate Division

Remove K Digits

Longest Repeating Character Replacement

Repeated Substring Pattern

Max Consecutive Ones

Task Scheduler

Design Circular Queue

Maximum Average Subarray I

Maximum Width Of Binary Tree

Asteroid Collision

Online Stock Span

Sum Of Subarray Minimums

Vowel Spellchecker

Capacity To Ship Packages Within D Days

Shortest Common Supersequence

Article Views I

Maximum Profit In Job Scheduling

Furthest Building You Can Reach

Maximum Units On A Truck

Plates Between Candles

Find Triangular Sum Of An Array

Number Of Zero Filled Subarrays

Smallest Missing Non Negative Integer After Operations

Minimum Operations To Make The Integer Zero

Count Elements With Maximum Frequency

Find The Number Of Ways To Place People I

Taking Maximum Energy From The Mystic Dungeon

Find The Minimum Area To Cover All Ones Ii

Find The Minimum Amount Of Time To Brew Potions

Lexicographically Smallest Permutation Greater Than Target

Zigzag Conversion

Substring With Concatenation Of All Words

Longest Valid Parentheses

Sudoku Solver

Count And Say

Jump Game Ii

Powx N

Length Of Last Word

Rotate List

Unique Paths

Simplify Path

Remove Duplicates From Sorted List

Maximal Rectangle

Binary Tree Inorder Traversal

Distinct Subsequences

Triangle

Best Time To Buy And Sell Stock Ii

Palindrome Partitioning Ii

Clone Graph

Word Break

Linked List Cycle Ii

Sort List

Reverse Words In A String

Two Sum Ii Input Array Is Sorted

Delete Duplicate Emails

Rising Temperature

Binary Tree Right Side View

Remove Linked List Elements

Isomorphic Strings

Contains Duplicate Ii

Basic Calculator Ii

Lowest Common Ancestor Of A Binary Search Tree

Search A 2d Matrix Ii

Integer To English Words

Find The Celebrity

First Bad Version

Range Sum Query Immutable

Number Of Connected Components In An Undirected Graph

Odd Even Linked List

Reverse String

Russian Doll Envelopes

Design Twitter

Insert Delete Getrandom O1 Duplicates Allowed

Is Subsequence

Add Strings

All Oone Data Structure

Non Overlapping Intervals

Arranging Coins

Delete Node In A Bst

Predict The Winner

Contiguous Array

Permutation In String

Longest Harmonious Subsequence

Smallest Range Covering Elements From K Lists

Valid Palindrome Ii

Binary Search

Delete And Earn

Open The Lock

Partition Labels

Swim In Rising Water

New 21 Game

Boats To Save People

Minimum Falling Path Sum

Distribute Coins In Binary Tree

Time Based Key Value Store

Vertical Order Traversal Of A Binary Tree

Subarrays With K Different Integers

Immediate Food Delivery Ii

Unique Number Of Occurrences

Find The Smallest Divisor Given A Threshold

Find N Unique Integers Sum Up To Zero

Convert Integer To The Sum Of Two No Zero Integers

Percentage Of Users Attended A Contest

Swapping Nodes In A Linked List

Minimum Number Of People To Teach

Minimum Difference Between Highest And Lowest Of K Scores

Count Number Of Rectangles Containing Each Point

Successful Pairs Of Spells And Potions

Number Of People Aware Of A Secret

Range Product Queries Of Powers

Count Subarrays With Median K

Ways To Express An Integer As Sum Of Powers

Score Of A String

Maximum Total Damage With Spell Casting

Find The Minimum Area To Cover All Ones I

Delete Nodes From Linked List Present In Array

Make Array Elements Equal To Zero

Maximum Number Of Distinct Elements After Operations

Sort Matrix By Diagonals

Length Of Longest V Shaped Diagonal Segment

Remove Nth Node From End Of List

Swap Nodes In Pairs

Divide Two Integers

Combination Sum

Permutations

Permutations Ii

N Queens Ii

Insert Interval

Spiral Matrix Ii

Minimum Path Sum

Plus One

Search In Rotated Sorted Array Ii

Scramble String

Recover Binary Search Tree

Symmetric Tree

Path Sum

Flatten Binary Tree To Linked List

Palindrome Partitioning

Word Break Ii

Evaluate Reverse Polish Notation

Maximum Product Subarray

Fraction To Recurring Decimal

Dungeon Game

Nth Highest Salary

Rank Scores

Consecutive Numbers

Department Highest Salary

Department Top Three Salaries

Reverse Bits

Bitwise And Of Numbers Range

Minimum Size Subarray Sum

Design Add And Search Words Data Structure

House Robber Ii

Shortest Palindrome

Basic Calculator

Implement Stack Using Queues

Invert Binary Tree

Kth Smallest Element In A Bst

Implement Queue Using Stacks

Ugly Number

Burst Balloons

Shortest Distance From All Buildings

Increasing Triplet Subsequence

Design Tic Tac Toe

Design Hit Counter

Largest Divisible Subset

First Unique Character In A String

Fizz Buzz

Path Sum Iii

Find All Anagrams In A String

Add Two Numbers Ii

Island Perimeter

Reverse Pairs

Target Sum

Base 7

Perfect Number

Fibonacci Number

Game Play Analysis I

Longest Palindromic Subsequence

Number Of Provinces

Array Partition

Investments In 2016

Big Countries

Exclusive Time Of Functions

Set Mismatch

Find K Closest Elements

Strange Printer

Valid Parenthesis String

Count Binary Substrings

Degree Of An Array

Design Linked List

Subarray Product Less Than K

Maximum Length Of Repeated Subarray

My Calendar I

Jewels And Stones

Is Graph Bipartite

Cheapest Flights Within K Stops

Soup Servings

Largest Triangle Area

Peak Index In A Mountain Array

Lemonade Change

Shortest Subarray With Sum At Least K

Transpose Matrix

Reordered Power Of 2

Leaf Similar Trees

Nth Magical Number

Maximum Frequency Stack

Sort Array By Parity

Sort Array By Parity Ii

Most Stones Removed With Same Row Or Column

Binary Tree Cameras

Squares Of A Sorted Array

Max Consecutive Ones Iii

Next Greater Node In Linked List

Robot Bounded In Circle

Customers Who Bought All Products

Last Stone Weight

Remove All Adjacent Duplicates In String

Longest String Chain

Car Pooling

Find In Mountain Array

Defanging An Ip Address

N Th Tribonacci Number

Longest Common Subsequence

Product Price At A Given Date

Design File System

Critical Connections In A Network

Sort Items By Groups Respecting Dependencies

Remove All Adjacent Duplicates In String Ii

Search Suggestions System

Students And Examinations

Minimum Insertion Steps To Make A String Palindrome

Number Of Operations To Make Network Connected

Restaurant Growth

Maximum 69 Number

How Many Numbers Are Smaller Than The Current Number

Maximum Sum Bst In Binary Tree

Longest Continuous Subarray With Absolute Diff Less Than Or Equal To Limit

Running Sum Of 1d Array

Minimum Number Of Days To Make M Bouquets

Number Of Subsequences That Satisfy The Given Sum Condition

Count Submatrices With All Ones

Kth Missing Positive Number

Make The String Great

Magnetic Force Between Two Balls

Customer Who Visited But Did Not Make Any Transactions

Min Cost To Connect All Points

Even Odd Tree

Lexicographically Smallest String After Applying Operations

Average Time Of Process Per Machine

The Number Of Employees Which Report To Each Employee

Minimum Limit Of Balls In A Bag

Merge Strings Alternately

Primary Department For Each Employee

Frequency Of The Most Frequent Element

Find A Peak Element Ii

Count Good Numbers

Final Value Of Variable After Performing Operations

Most Beautiful Item For Each Query

Minimum Sum Of Four Digit Number After Splitting Digits

Minimum Time To Complete Trips

Maximum Candies Allocated To K Children

Count Unreachable Pairs Of Nodes In An Undirected Graph

Maximum Sum Of Distinct Subarrays With Length K

Minimize The Maximum Difference Of Pairs

Sleep

Find The Maximum Achievable Number

Water Bottles Ii

Maximum Frequency Of An Element After Performing Operations I

Design Task Manager

Maximum Frequency After Subarray Operation

Fruits Into Baskets Ii

Fruits Into Baskets Iii

Find Most Frequent Vowel And Consonant

Minimum Operations To Equalize Binary String

Sum Of Perfect Square Ancestors

Back to AmazonLeetCode Index