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

Microsoft — 180 Days

Two Sum

Add Two Numbers

Longest Substring Without Repeating Characters

Median Of Two Sorted Arrays

Subarray Sum Equals K

Merge Intervals

Longest Palindromic Substring

Trapping Rain Water

Best Time To Buy And Sell Stock

3sum

Valid Parentheses

Group Anagrams

Lru Cache

Roman To Integer

Palindrome Number

Remove Duplicates From Sorted Array

Majority Element

Search In Rotated Sorted Array

Rotate Image

Longest Common Prefix

Maximum Subarray

Next Permutation

Spiral Matrix

Minimum Edge Reversals So Every Node Is Reachable

Container With Most Water

Reverse Nodes In K Group

Move Zeroes

Merge Sorted Array

Generate Parentheses

Largest Rectangle In Histogram

Reverse Integer

Jump Game Ii

Koko Eating Bananas

Merge Two Sorted Lists

Permutations

Pascals Triangle

Longest Consecutive Sequence

Gas Station

Number Of Islands

Happy Number

Contains Duplicate

Valid Anagram

Coin Change

Minimum Operations To Reduce An Integer To 0

Merge K Sorted Lists

Find The Index Of The First Occurrence In A String

Search Insert Position

Find Peak Element

Rising Temperature

Course Schedule Ii

Design Authentication Manager

Find First And Last Position Of Element In Sorted Array

Valid Sudoku

Sort Colors

Arranging Coins

Single Element In A Sorted Array

Daily Temperatures

Max Consecutive Ones Iii

Count The Number Of Infection Sequences

String To Integer Atoi

Regular Expression Matching

Sqrtx

Maximum Depth Of Binary Tree

House Robber

Reverse Linked List

Lowest Common Ancestor Of A Binary Tree

Sliding Window Maximum

Split Array Largest Sum

Longest Repeating Character Replacement

Number Of Provinces

Count Palindromic Subsequences

Valid Word

Integer To Roman

Remove Nth Node From End Of List

Combination Sum

First Missing Positive

N Queens

Jump Game

Climbing Stairs

Restore Ip Addresses

Binary Tree Level Order Traversal

Best Time To Buy And Sell Stock Ii

Valid Palindrome

Single Number

Linked List Cycle

Find Minimum In Rotated Sorted Array

Min Stack

Rotate Array

Minimum Size Subarray Sum

Product Of Array Except Self

Find Median From Data Stream

Serialize And Deserialize Binary Tree

Top K Frequent Elements

Ransom Note

Rotting Oranges

Minimum Difficulty Of A Job Schedule

Add Two Integers

Subsets

Binary Tree Inorder Traversal

Same Tree

Binary Tree Zigzag Level Order Traversal

Word Ladder

Word Break

Reverse Words In A String

Largest Number

Employees Earning More Than Their Managers

Implement Trie Prefix Tree

Meeting Rooms Ii

Perfect Squares

Find The Duplicate Number

Longest Increasing Subsequence

Intersection Of Two Arrays

Decode String

Find All Anagrams In A String

String Compression

Next Greater Element I

Vowel Spellchecker

Smallest String With Swaps

Recyclable And Low Fat Products

Frequency Of The Most Frequent Element

Minimum Operations To Make Array Equal To Target

Letter Combinations Of A Phone Number

Remove Element

Divide Two Integers

Longest Valid Parentheses

Sudoku Solver

Multiply Strings

Add Binary

Simplify Path

Word Search

Subsets Ii

Reverse Linked List Ii

Populating Next Right Pointers In Each Node

Linked List Cycle Ii

Maximum Product Subarray

Two Sum Ii Input Array Is Sorted

Second Highest Salary

Course Schedule

Kth Smallest Element In A Bst

First Unique Character In A String

Partition Equal Subset Sum

Battleships In A Board

Find All Duplicates In An Array

Max Consecutive Ones

Fibonacci Number

Game Play Analysis Iv

Can Place Flowers

Task Scheduler

Design Hashmap

Peak Index In A Mountain Array

Online Stock Span

Longest Common Subsequence

Minimum Absolute Difference

Maximum Number Of Events That Can Be Attended

Minimum Value To Get Positive Step By Step Sum

Running Sum Of 1d Array

Average Time Of Process Per Machine

Calculate Money In Leetcode Bank

Merge Strings Alternately

Maximum Number Of Alloys

Maximum Difference Between Even And Odd Frequency I

Combination Sum Ii

Permutations Ii

Powx N

Minimum Path Sum

Edit Distance

Set Matrix Zeroes

Maximal Rectangle

Interleaving String

Recover Binary Search Tree

Palindrome Partitioning

Sort List

Evaluate Reverse Polish Notation

Excel Sheet Column Number

Combine Two Tables

Word Search Ii

House Robber Ii

Kth Largest Element In An Array

Implement Stack Using Queues

Majority Element Ii

Palindrome Linked List

Delete Node In A Linked List

Meeting Rooms

Power Of Three

Odd Even Linked List

Perfect Number

Permutation In String

Managers With At Least 5 Direct Reports

Palindromic Substrings

Find K Closest Elements

24 Game

Accounts Merge

Special Binary String

Backspace String Compare

Subarrays With K Different Integers

Height Checker

Monthly Transactions I

Convert Integer To The Sum Of Two No Zero Integers

Minimum Number Of Steps To Make Two Strings Anagram

Find The Winner Of An Array Game

Customer Who Visited But Did Not Make Any Transactions

Minimum Initial Energy To Finish Tasks

Check If Array Is Sorted And Rotated

Primary Department For Each Employee

Count Good Numbers

Rearranging Fruits

Find The Original Typed String Ii

Zigzag Conversion

4sum

Swap Nodes In Pairs

Wildcard Matching

Length Of Last Word

Permutation Sequence

Rotate List

Unique Paths

Plus One

Text Justification

Minimum Window Substring

Remove Duplicates From Sorted Array Ii

Validate Binary Search Tree

Convert Sorted Array To Binary Search Tree

Balanced Binary Tree

Triangle

Best Time To Buy And Sell Stock Iii

Word Ladder Ii

Candy

Single Number Ii

Copy List With Random Pointer

Intersection Of Two Linked Lists

Delete Duplicate Emails

Binary Tree Right Side View

Contains Duplicate Ii

Contains Duplicate Iii

Implement Queue Using Stacks

Add Digits

Missing Number

H Index

Game Of Life

Remove Invalid Parentheses

Longest Substring With At Most K Distinct Characters

Intersection Of Two Arrays Ii

Design Hit Counter

Insert Delete Getrandom O1

Is Subsequence

Longest Substring With At Least K Repeating Characters

Remove K Digits

Fizz Buzz

Add Strings

K Th Smallest In Lexicographical Order

Delete Node In A Bst

Diagonal Traverse

Next Greater Element Ii

Next Greater Element Iii

Friend Requests Ii Who Has The Most Friends

Valid Triangle Number

Exclusive Time Of Functions

Maximum Average Subarray I

Maximum Width Of Binary Tree

Valid Palindrome Ii

Kth Largest Element In A Stream

Binary Search

Flood Fill

Asteroid Collision

Is Graph Bipartite

Split Array With Same Average

Rectangle Overlap

New 21 Game

Shifting Letters

All Nodes Distance K In Binary Tree

Middle Of The Linked List

Bitwise Ors Of Subarrays

Fruit Into Baskets

Snakes And Ladders

Subarray Sums Divisible By K

Vertical Order Traversal Of A Binary Tree

Number Of Enclaves

Greatest Common Divisor Of Strings

Shortest Path In Binary Matrix

Article Views I

Minimum Knight Moves

Maximum Profit In Job Scheduling

Average Selling Price

Search Suggestions System

Find N Unique Integers Sum Up To Zero

Number Of Substrings Containing All Three Characters

Find Lucky Integer In An Array

Maximum Points You Can Obtain From Cards

Final Prices With A Special Discount In A Shop

Longest Subarray Of 1s After Deleting One Element

Minimum Number Of Increments On Subarrays To Form A Target Array

Maximal Network Rank

Swapping Nodes In A Linked List

Sum Of Beauty Of All Substrings

Check If The Sentence Is Pangram

Maximum Number Of Words You Can Type

Number Of Visible People In A Queue

Kth Smallest Product Of Two Sorted Arrays

Longest Palindrome By Concatenating Two Letter Words

Maximum Number Of Non Overlapping Palindrome Substrings

To Be Or Not To Be

Count Elements With Maximum Frequency

Alice And Bob Playing Flower Game

Find The K Th Character In String Game I

Smallest Number With All Set Bits

Maximum Manhattan Distance After K Changes

Maximum Difference Between Even And Odd Frequency Ii

Maximum Unique Subarray Sum After Deletion

N Queens Ii

Insert Interval

Spiral Matrix Ii

Search A 2d Matrix

Combinations

Partition List

Decode Ways

Construct Binary Tree From Preorder And Inorder Traversal

Path Sum

Path Sum Ii

Populating Next Right Pointers In Each Node Ii

Sum Root To Leaf Numbers

Surrounded Regions

Palindrome Partitioning Ii

Clone Graph

Word Break Ii

Reorder List

Binary Tree Preorder Traversal

Excel Sheet Column Title

Factorial Trailing Zeroes

Consecutive Numbers

Reverse Bits

Design Add And Search Words Data Structure

The Skyline Problem

Maximal Square

Number Of Digit One

Lowest Common Ancestor Of A Binary Search Tree

Search A 2d Matrix Ii

Encode And Decode Strings

Integer To English Words

First Bad Version

Range Sum Query Immutable

Burst Balloons

Binary Tree Vertical Order Traversal

Wiggle Sort Ii

Reconstruct Itinerary

House Robber Iii

Counting Bits

Power Of Four

Reverse String

Design Tic Tac Toe

Logger Rate Limiter

Valid Perfect Square

Find K Pairs With Smallest Sums

Evaluate Division

Trapping Rain Water Ii

Longest Palindrome

Flatten A Multilevel Doubly Linked List

Minimum Genetic Mutation

Add Two Numbers Ii

Find All Numbers Disappeared In An Array

Serialize And Deserialize Bst

Assign Cookies

Lfu Cache

Island Perimeter

Optimal Account Balancing

Robot Room Cleaner

Reverse Pairs

Ipo

Longest Palindromic Subsequence

Continuous Subarray Sum

Convert Bst To Greater Tree

01 Matrix

Diameter Of Binary Tree

Boundary Of Binary Tree

Employee Bonus

Investments In 2016

Customer Placing The Largest Number Of Orders

Design In Memory File System

Big Countries

Classes With At Least 5 Students

Merge Two Binary Trees

Design Circular Queue

Set Mismatch

Valid Parenthesis String

Top K Frequent Words

Max Area Of Island

Insert Into A Binary Search Tree

Design Linked List

Best Time To Buy And Sell Stock With Transaction Fee

Split Linked List In Parts

Delete And Earn

Cherry Pickup

Network Delay Time

Open The Lock

Reorganize String

Jewels And Stones

Reaching Points

Cheapest Flights Within K Stops

Bus Routes

Making A Large Island

Consecutive Numbers Sum

Hand Of Straights

Reordered Power Of 2

Minimum Number Of Refueling Stops

Super Egg Drop

Sort An Array

Cat And Mouse

Sort Array By Parity Ii

Minimize Malware Spread

Binary Subarrays With Sum

Shortest Bridge

Check Completeness Of A Binary Tree

Interval List Intersections

Broken Calculator

Construct Binary Search Tree From Preorder Traversal

Minimum Score Triangulation Of Polygon

Remove All Adjacent Duplicates In String

Actors And Directors Who Cooperated At Least Three Times

Product Sales Analysis Iii

Car Pooling

Snapshot Array

As Far From Land As Possible

Immediate Food Delivery Ii

Unique Number Of Occurrences

The Dining Philosophers

Minimum Swaps To Make Strings Equal

Count Number Of Nice Subarrays

Count Servers That Communicate

Students And Examinations

Jump Game Iii

Maximum 69 Number

Movie Rating

Count Negative Numbers In A Sorted Matrix

Longest Happy Prefix

Count Good Nodes In Binary Tree

Rearrange Words In A Sentence

Reorder Routes To Make All Paths Lead To The City Zero

Number Of Good Pairs

Water Bottles

Count Odd Numbers In An Interval Range

Minimum Suffix Flips

Get The Maximum Score

Kth Missing Positive Number

Min Cost To Connect All Points

Ways To Make A Fair Array

Merge In Between Linked Lists

Richest Customer Wealth

Maximum Erasure Value

Maximum Average Pass Ratio

Maximum Population Year

Sorting The Sentence

Concatenation Of Array

Delete Duplicate Folders In System

Finding 3 Digit Even Numbers

Sum Of Subarray Ranges

Partition Array According To Given Pivot

Find Resultant Array After Removing Anagrams

Design A Text Editor

Successful Pairs Of Spells And Potions

Number Of People Aware Of A Secret

Number Of Zero Filled Subarrays

Meeting Rooms Iii

Longest Subarray With Maximum Bitwise And

Find The Original Array Of Prefix Xor

Count Subarrays With Fixed Bounds

Minimum Cost To Make Array Equal

Minimum Penalty For A Shop

Design Memory Allocator

Maximum Subsequence Score

Maximize Greatness Of An Array

Minimize The Maximum Difference Of Pairs

Check If Object Instance Of Class

Counter

Create Hello World Function

Maximum Or

Find The Maximum Achievable Number

Insert Greatest Common Divisors In Linked List

Harshad Number

Find The Minimum Area To Cover All Ones I

Find The Minimum Area To Cover All Ones Ii

Find The Maximum Length Of Valid Subsequence I

Find The Maximum Length Of Valid Subsequence Ii

Delete Nodes From Linked List Present In Array

The Two Sneaky Numbers Of Digitville

Make Array Elements Equal To Zero

Zero Array Transformation I

Zero Array Transformation Iii

Design Task Manager

Fruits Into Baskets Ii

Fruits Into Baskets Iii

Maximize Subarrays After Removing One Conflicting Pair

Implement Router

Transform Array To All Equal Elements

Twisted Mirror Path Count

Back to MicrosoftLeetCode Index