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

Google — 90 Days

Two Sum

Longest Common Prefix

Add Two Numbers

Median Of Two Sorted Arrays

Palindrome Number

Trapping Rain Water

Best Time To Buy And Sell Stock

Longest Consecutive Sequence

3sum

Longest Substring Without Repeating Characters

Meeting Rooms Ii

Maximum Subarray

Subarray Sum Equals K

Longest Palindromic Substring

Container With Most Water

Merge Sorted Array

Decode String

Roman To Integer

Find The Index Of The First Occurrence In A String

Merge Intervals

Majority Element

Number Of Visible People In A Queue

Valid Parentheses

Search In Rotated Sorted Array

Top K Frequent Elements

Next Permutation

Single Number

Add Two Integers

Merge Two Sorted Lists

Generate Parentheses

Remove Duplicates From Sorted Array

Remove Element

Sort Colors

Find N Unique Integers Sum Up To Zero

Merge Strings Alternately

Create Hello World Function

Reverse Integer

Search Insert Position

Add Binary

Rotate Array

Move Zeroes

Binary Search

Recyclable And Low Fat Products

Spiral Matrix

Sqrtx

Lru Cache

Combine Two Tables

Happy Number

Reverse Linked List

Power Of Two

3sum Closest

Rotate Image

Group Anagrams

House Robber

Count Primes

Split Array Largest Sum

Regular Expression Matching

4sum

Jump Game Ii

N Queens

Insert Interval

Climbing Stairs

Second Highest Salary

Employees Earning More Than Their Managers

Rising Temperature

Kth Largest Element In An Array

Sliding Window Maximum

Longest Increasing Subsequence

Intersection Of Two Arrays

Find First And Last Position Of Element In Sorted Array

Sudoku Solver

Powx N

Maximal Square

Palindrome Linked List

Reverse String

Largest Triangle Area

Koko Eating Bananas

Sort An Array

Minimum Number Of Increments On Subarrays To Form A Target Array

Valid Sudoku

Wildcard Matching

Jump Game

Rotate List

Plus One

Edit Distance

Set Matrix Zeroes

Minimum Window Substring

Subsets Ii

Reverse Linked List Ii

Binary Tree Zigzag Level Order Traversal

Valid Palindrome

Candy

Linked List Cycle

Find Peak Element

Course Schedule

Contains Duplicate

Search A 2d Matrix Ii

Valid Anagram

Reverse Vowels Of A String

Logger Rate Limiter

Longest Repeating Character Replacement

Coin Change Ii

Single Element In A Sorted Array

Employee Bonus

24 Game

New 21 Game

Middle Of The Linked List

Fruit Into Baskets

Students And Examinations

Next Greater Numerically Balanced Number

Zigzag Conversion

Reverse Nodes In K Group

Unique Paths

Subsets

Largest Rectangle In Histogram

Pascals Triangle

Copy List With Random Pointer

Maximum Product Subarray

Number Of Islands

Remove Linked List Elements

Course Schedule Ii

Product Of Array Except Self

Ugly Number

Find The Duplicate Number

Power Of Three

Russian Doll Envelopes

Insert Delete Getrandom O1

Remove K Digits

Third Maximum Number

Pacific Atlantic Water Flow

Find All Numbers Disappeared In An Array

Max Consecutive Ones

Next Greater Element I

Diagonal Traverse

Random Pick With Weight

Find Customer Referee

Daily Temperatures

Rotate String

Peak Index In A Mountain Array

Rotting Oranges

Longest Common Subsequence

Count Submatrices With All Ones

Water Bottles

Calculate Money In Leetcode Bank

Maximum Number Of Words You Can Type

Largest 3 Same Digit Number In String

Minimum Operations To Make The Integer Zero

Find The Minimum Area To Cover All Ones I

Design Task Manager

Apply Substitutions

Letter Combinations Of A Phone Number

Remove Nth Node From End Of List

Divide Two Integers

First Missing Positive

Length Of Last Word

Text Justification

Same Tree

Binary Tree Level Order Traversal

Best Time To Buy And Sell Stock Ii

Word Ladder

Surrounded Regions

Gas Station

Reverse Words In A String

Min Stack

Intersection Of Two Linked Lists

Compare Version Numbers

Isomorphic Strings

Shortest Palindrome

Basic Calculator

Implement Stack Using Queues

Kth Smallest Element In A Bst

Lowest Common Ancestor Of A Binary Tree

Delete Node In A Linked List

Perfect Squares

Odd Even Linked List

Power Of Four

Find The Difference

Fizz Buzz

Partition Equal Subset Sum

Target Sum

Triangle Judgement

Maximum Average Subarray I

Valid Parenthesis String

Top K Frequent Words

Range Module

Soup Servings

Reordered Power Of 2

Binary Subarrays With Sum

Squares Of A Sorted Array

Longest Duplicate Substring

The Earliest Moment When Everyone Become Friends

Convert Integer To The Sum Of Two No Zero Integers

Maximum 69 Number

Running Sum Of 1d Array

Longest Subarray Of 1s After Deleting One Element

Average Time Of Process Per Machine

Invalid Tweets

Check If Array Is Sorted And Rotated

Concatenation Of Array

Final Value Of Variable After Performing Operations

Find Resultant Array After Removing Anagrams

Find The Maximum Achievable Number

Make Array Elements Equal To Zero

Smallest Number With All Set Bits

Minimum Operations To Make Array Elements Zero

Inverse Coin Change

String To Integer Atoi

Integer To Roman

Merge K Sorted Lists

Multiply Strings

Search A 2d Matrix

Remove Duplicates From Sorted Array Ii

Remove Duplicates From Sorted List

Binary Tree Inorder Traversal

Interleaving String

Recover Binary Search Tree

Symmetric Tree

Construct Binary Tree From Preorder And Inorder Traversal

Minimum Depth Of Binary Tree

Populating Next Right Pointers In Each Node

Triangle

Palindrome Partitioning

Palindrome Partitioning Ii

Word Break

Linked List Cycle Ii

Reorder List

Max Points On A Line

Find Minimum In Rotated Sorted Array Ii

Two Sum Ii Input Array Is Sorted

Rank Scores

Number Of 1 Bits

House Robber Ii

Invert Binary Tree

Summary Ranges

Implement Queue Using Stacks

Binary Tree Paths

Add Digits

Integer To English Words

First Bad Version

Find Median From Data Stream

Serialize And Deserialize Binary Tree

Range Sum Query 2d Immutable

Increasing Triplet Subsequence

Counting Bits

Largest Divisible Subset

Ransom Note

Trapping Rain Water Ii

Assign Cookies

132 Pattern

Fibonacci Number

Detect Capital

Longest Word In Dictionary Through Deleting

Number Of Provinces

Game Play Analysis Iv

Big Countries

Palindromic Substrings

Longest Continuous Increasing Subsequence

Design Linked List

Jewels And Stones

Swim In Rising Water

Race Car

Guess The Word

Sum Of Subarray Minimums

Vowel Spellchecker

Largest Perimeter Triangle

Max Consecutive Ones Iii

Capacity To Ship Packages Within D Days

Greatest Common Divisor Of Strings

Shortest Path In Binary Matrix

Car Pooling

Path With Maximum Minimum Value

Article Views I

Immediate Food Delivery Ii

Average Selling Price

Search Suggestions System

Count Square Submatrices With All Ones

Find The Smallest Divisor Given A Threshold

Avoid Flood In The City

Kth Missing Positive Number

Magnetic Force Between Two Balls

Minimum Number Of People To Teach

Check If The Sentence Is Pangram

Minimum Interval To Include Each Query

Number Of Ways To Arrive At Destination

Simple Bank System

Rearrange Array Elements By Sign

Number Of People Aware Of A Secret

The Latest Time To Catch A Bus

Counter

Maximum Total Damage With Spell Casting

Maximum Frequency Of An Element After Performing Operations I

Adjacent Increasing Subarrays Detection I

Maximum Number Of Distinct Elements After Operations

Next Special Palindrome Number

Permutations

N Queens Ii

Permutation Sequence

Word Search

Remove Duplicates From Sorted List Ii

Maximal Rectangle

Unique Binary Search Trees Ii

Unique Binary Search Trees

Maximum Depth Of Binary Tree

Convert Sorted Array To Binary Search Tree

Balanced Binary Tree

Path Sum

Distinct Subsequences

Binary Tree Maximum Path Sum

Sum Root To Leaf Numbers

Sort List

Evaluate Reverse Polish Notation

Maximum Gap

Fraction To Recurring Decimal

Excel Sheet Column Title

Nth Highest Salary

Largest Number

Duplicate Emails

Delete Duplicate Emails

Word Search Ii

Contains Duplicate Ii

Majority Element Ii

Group Shifted Strings

Meeting Rooms

Paint House

Missing Number

Encode And Decode Strings

Expression Add Operators

Word Pattern

Nim Game

Range Sum Query Mutable

Best Time To Buy And Sell Stock With Cooldown

Burst Balloons

Coin Change

Wiggle Sort Ii

Longest Increasing Path In A Matrix

Nested List Weight Sum

Flatten Nested List Iterator

Intersection Of Two Arrays Ii

Sum Of Two Integers

First Unique Character In A String

Is Subsequence

Evaluate Division

Nth Digit

Frog Jump

Queue Reconstruction By Height

String Compression

Sort Characters By Frequency

Lfu Cache

Implement Rand10 Using Rand7

Sliding Window Median

Predict The Winner

Reverse Pairs

Continuous Subarray Sum

Minimum Absolute Difference In Bst

Encode And Decode Tinyurl

Reverse String Ii

Remove Boxes

Permutation In String

Managers With At Least 5 Direct Reports

Classes With At Least 5 Students

Friend Requests Ii Who Has The Most Friends

Can Place Flowers

Merge Two Binary Trees

Design Circular Queue

Exchange Seats

Sum Of Square Numbers

Exclusive Time Of Functions

Design Search Autocomplete System

Find Duplicate Subtrees

Valid Palindrome Ii

Baseball Game

Redundant Connection

Repeated String Match

Binary Number With Alternating Bits

Degree Of An Array

Subarray Product Less Than K

Accounts Merge

Find Pivot Index

Flood Fill

Asteroid Collision

Employee Free Time

Reorganize String

Number Of Matching Subsequences

Find And Replace In String

Shortest Path Visiting All Nodes

Exam Room

All Nodes Distance K In Binary Tree

Transpose Matrix

Minimum Number Of Refueling Stops

Online Stock Span

X Of A Kind In A Deck Of Cards

Unique Email Addresses

Minimum Falling Path Sum

Maximum Width Ramp

Minimum Area Rectangle Ii

K Closest Points To Origin

Time Based Key Value Store

Satisfiability Of Equality Equations

Remove Outermost Parentheses

Divisor Game

Longest String Chain

Last Stone Weight Ii

Product Sales Analysis Iii

Shortest Common Supersequence

Defanging An Ip Address

Delete Nodes And Return Forest

Highest Grade For Each Student

Snapshot Array

Critical Connections In A Network

Monthly Transactions I

Last Person To Fit In The Bus

Minimum Moves To Move A Box To Their Target Location

Delete Leaves With A Given Value

Maximum Number Of Events That Can Be Attended

Maximum Sum Bst In Binary Tree

Minimum Number Of Days To Make M Bouquets

Xor Operation In An Array

Shortest Subarray To Be Removed To Make Array Sorted

Remove Max Number Of Edges To Keep Graph Fully Traversable

Min Cost To Connect All Points

Percentage Of Users Attended A Contest

Lowest Common Ancestor Of A Binary Tree Iii

Defuse The Bomb

Number Of Students Unable To Eat Lunch

Maximum Units On A Truck

Find The Highest Altitude

Check If Number Is A Sum Of Powers Of Three

Maximum Average Pass Ratio

Frequency Of The Most Frequent Element

Find A Peak Element Ii

Confirmation Rate

Three Divisors

Reverse Prefix Of Word

All Ancestors Of A Node In A Directed Acyclic Graph

Replace Non Coprime Numbers In Array

Maximum Score Of A Node Sequence

Count Unguarded Cells In The Grid

Decode The Message

Number Of Zero Filled Subarrays

Design A Food Rating System

Meeting Rooms Iii

Range Product Queries Of Powers

Left And Right Sum Differences

Collect Coins In A Tree

Minimize The Maximum Difference Of Pairs

Ways To Express An Integer As Sum Of Powers

Find Missing And Repeated Values

Find Beautiful Indices In The Given Array I

Find The Number Of Ways To Place People I

Taking Maximum Energy From The Mystic Dungeon

Clear Digits

Maximum Frequency Of An Element After Performing Operations Ii

Adjacent Increasing Subarrays Detection Ii

Maximum Subarray With Equal Products

Sort Matrix By Diagonals

Check If Digits Are Equal In String After Operations I

Design Spreadsheet

Minimum Pair Removal To Sort Array I

Find Closest Person

Partition Array Into K Distinct Groups

Count Bowl Subarrays

Subsequence Sum After Capping Elements

Number Of Stable Subsequences

Sum Of Perfect Square Ancestors

Lexicographically Smallest Permutation Greater Than Target

Back to GoogleLeetCode Index