DEV Community

DSA With TheAbbie Series' Articles

Back to Abhishek Chaudhary's Series
Nth Digit

Nth Digit

2
Comments
1 min read
Smallest Good Base

Smallest Good Base

1
Comments
1 min read
Minimum Cost of Buying Candies With Discount

Minimum Cost of Buying Candies With Discount

4
Comments
2 min read
Number of Ways to Divide a Long Corridor

Number of Ways to Divide a Long Corridor

1
Comments
2 min read
Remove One Element to Make the Array Strictly Increasing

Remove One Element to Make the Array Strictly Increasing

1
Comments
1 min read
Swap Nodes in Pairs

Swap Nodes in Pairs

1
Comments
1 min read
Group the People Given the Group Size They Belong To

Group the People Given the Group Size They Belong To

Comments
2 min read
Number of Pairs of Strings With Concatenation Equal to Target

Number of Pairs of Strings With Concatenation Equal to Target

Comments
1 min read
Largest Rectangle in Histogram

Largest Rectangle in Histogram

Comments
2 min read
Single Number II

Single Number II

Comments
1 min read
Minimum Cost to Move Chips to The Same Position

Minimum Cost to Move Chips to The Same Position

Comments
1 min read
Pascal's Triangle

Pascal's Triangle

Comments
1 min read
Number of 1 Bits

Number of 1 Bits

Comments
1 min read
Koko Eating Bananas

Koko Eating Bananas

Comments
1 min read
Flower Planting With No Adjacent

Flower Planting With No Adjacent

Comments
2 min read
Minimum Time to Complete Trips

Minimum Time to Complete Trips

Comments
2 min read
Alert Using Same Key-Card Three or More Times in a One Hour Period

Alert Using Same Key-Card Three or More Times in a One Hour Period

Comments
2 min read
Minimum Moves to Reach Target Score

Minimum Moves to Reach Target Score

Comments
1 min read
Minimum Insertion Steps to Make a String Palindrome

Minimum Insertion Steps to Make a String Palindrome

Comments
1 min read
Find Numbers with Even Number of Digits

Find Numbers with Even Number of Digits

Comments
1 min read
Minimum Sum of Four Digit Number After Splitting Digits

Minimum Sum of Four Digit Number After Splitting Digits

Comments
1 min read
Design HashMap

Design HashMap

Comments
2 min read
Broken Calculator

Broken Calculator

Comments
1 min read
Validate Binary Search Tree

Validate Binary Search Tree

Comments
1 min read
Restore the Array From Adjacent Pairs

Restore the Array From Adjacent Pairs

Comments
2 min read
Median of Two Sorted Arrays

Median of Two Sorted Arrays

Comments
1 min read
Palindrome Partitioning II

Palindrome Partitioning II

Comments
1 min read
Cells with Odd Values in a Matrix

Cells with Odd Values in a Matrix

Comments
2 min read
Verifying an Alien Dictionary

Verifying an Alien Dictionary

Comments
1 min read
Closest Divisors

Closest Divisors

Comments
1 min read
Reverse String

Reverse String

Comments
1 min read
Longest Common Prefix

Longest Common Prefix

1
Comments
2 min read
Climbing Stairs

Climbing Stairs

1
Comments
1 min read
Binary Tree Inorder Traversal

Binary Tree Inorder Traversal

1
Comments
1 min read
Convert Binary Number in a Linked List to Integer

Convert Binary Number in a Linked List to Integer

1
Comments
1 min read
Surrounded Regions

Surrounded Regions

1
Comments
2 min read
Encrypt and Decrypt Strings

Encrypt and Decrypt Strings

Comments
3 min read
Count Special Quadruplets

Count Special Quadruplets

1
Comments
1 min read
Ugly Number II

Ugly Number II

1
Comments
1 min read
Hamming Distance

Hamming Distance

1
Comments
1 min read
Decompress Run-Length Encoded List

Decompress Run-Length Encoded List

1
Comments
1 min read
Perfect Number

Perfect Number

1
Comments
1 min read
Longest Increasing Subsequence

Longest Increasing Subsequence

1
Comments
1 min read
Minimum Depth of Binary Tree

Minimum Depth of Binary Tree

1
Comments
1 min read
Sort Integers by The Number of 1 Bits

Sort Integers by The Number of 1 Bits

1
Comments
1 min read
Most Frequent Number Following Key In an Array

Most Frequent Number Following Key In an Array

1
Comments
1 min read
Longest Word in Dictionary through Deleting

Longest Word in Dictionary through Deleting

1
Comments
1 min read
Can Place Flowers

Can Place Flowers

1
Comments
1 min read
Longest Palindromic Substring

Longest Palindromic Substring

1
Comments
1 min read
Remove K Digits

Remove K Digits

1
Comments
1 min read
Reverse Pairs

Reverse Pairs

1
Comments
1 min read
Trapping Rain Water

Trapping Rain Water

1
Comments 1
1 min read
Find All People With Secret

Find All People With Secret

1
Comments
3 min read
Is Subsequence

Is Subsequence

1
Comments
1 min read
Maximum Number of Words You Can Type

Maximum Number of Words You Can Type

1
Comments
1 min read
Course Schedule II

Course Schedule II

Comments
2 min read
Additive Number

Additive Number

1
Comments
1 min read
Convert Sorted Array to Binary Search Tree

Convert Sorted Array to Binary Search Tree

1
Comments
1 min read
Encode and Decode TinyURL

Encode and Decode TinyURL

1
Comments
1 min read
Max Area of Island

Max Area of Island

1
Comments
2 min read
Recover Binary Search Tree

Recover Binary Search Tree

1
Comments
1 min read
Delete Node in a BST

Delete Node in a BST

1
Comments
2 min read
Stone Game

Stone Game

Comments
1 min read
Count Number of Nice Subarrays

Count Number of Nice Subarrays

1
Comments
1 min read
N-ary Tree Preorder Traversal

N-ary Tree Preorder Traversal

1
Comments
1 min read
Capitalize the Title

Capitalize the Title

1
Comments
2 min read
Find Unique Binary String

Find Unique Binary String

1
Comments
1 min read
Minimum Number of Operations to Convert Time

Minimum Number of Operations to Convert Time

1
Comments
1 min read
N-Queens

N-Queens

Comments
1 min read
Binary Tree Maximum Path Sum

Binary Tree Maximum Path Sum

1
Comments
1 min read
Intersection of Two Arrays II

Intersection of Two Arrays II

1
Comments
1 min read
Vertical Order Traversal of a Binary Tree

Vertical Order Traversal of a Binary Tree

1
Comments
2 min read
Trim a Binary Search Tree

Trim a Binary Search Tree

1
Comments
1 min read
Simplify Path

Simplify Path

1
Comments
2 min read
Balanced Binary Tree

Balanced Binary Tree

Comments
1 min read
Number of Steps to Reduce a Number to Zero

Number of Steps to Reduce a Number to Zero

1
Comments
1 min read
Maximum Population Year

Maximum Population Year

1
Comments
1 min read
Find the Highest Altitude

Find the Highest Altitude

1
Comments
1 min read
Intersection of Two Arrays

Intersection of Two Arrays

Comments
1 min read
Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree

1
Comments
2 min read
Maximum Candies Allocated to K Children

Maximum Candies Allocated to K Children

1
Comments
2 min read
Shortest Unsorted Continuous Subarray

Shortest Unsorted Continuous Subarray

1
Comments
1 min read
Number of Laser Beams in a Bank

Number of Laser Beams in a Bank

1
Comments
2 min read
Compare Version Numbers

Compare Version Numbers

Comments
2 min read
Queries on Number of Points Inside a Circle

Queries on Number of Points Inside a Circle

1
Comments
2 min read
Generate Random Point in a Circle

Generate Random Point in a Circle

1
Comments
1 min read
Check if Number is a Sum of Powers of Three

Check if Number is a Sum of Powers of Three

1
Comments
1 min read
Random Pick Index

Random Pick Index

1
Comments
1 min read
Champagne Tower

Champagne Tower

1
Comments
2 min read
Find K Pairs with Smallest Sums

Find K Pairs with Smallest Sums

1
Comments
1 min read
Monotonic Array

Monotonic Array

1
Comments
1 min read
Minimum Number of Vertices to Reach All Nodes

Minimum Number of Vertices to Reach All Nodes

1
Comments
1 min read
Matrix Diagonal Sum

Matrix Diagonal Sum

1
Comments
1 min read
Increasing Order Search Tree

Increasing Order Search Tree

1
Comments
1 min read
Summary Ranges

Summary Ranges

1
Comments
1 min read
Count Number of Pairs With Absolute Difference K

Count Number of Pairs With Absolute Difference K

1
Comments
1 min read
Maximum Number of Words Found in Sentences

Maximum Number of Words Found in Sentences

1
Comments
1 min read
Number of Ways to Split Array

Number of Ways to Split Array

1
Comments
2 min read
Get Maximum in Generated Array

Get Maximum in Generated Array

1
Comments
1 min read
Min Cost Climbing Stairs

Min Cost Climbing Stairs

1
Comments
1 min read
Sliding Window Maximum

Sliding Window Maximum

Comments
1 min read
Convert BST to Greater Tree

Convert BST to Greater Tree

Comments
2 min read
Find Closest Number to Zero

Find Closest Number to Zero

Comments
1 min read
Isomorphic Strings

Isomorphic Strings

Comments
1 min read
Minimize Deviation in Array

Minimize Deviation in Array

Comments
2 min read
Excel Sheet Column Number

Excel Sheet Column Number

Comments
1 min read
Count Good Meals

Count Good Meals

Comments
1 min read
Longest Harmonious Subsequence

Longest Harmonious Subsequence

Comments
1 min read
Sort Characters By Frequency

Sort Characters By Frequency

Comments
1 min read
Count Sorted Vowel Strings

Count Sorted Vowel Strings

Comments
1 min read
Find the Difference

Find the Difference

Comments
1 min read
Find Nearest Point That Has the Same X or Y Coordinate

Find Nearest Point That Has the Same X or Y Coordinate

Comments
2 min read
Reverse Vowels of a String

Reverse Vowels of a String

3
Comments
1 min read
Reverse Words in a String III

Reverse Words in a String III

3
Comments
1 min read
Final Value of Variable After Performing Operations

Final Value of Variable After Performing Operations

3
Comments
1 min read
Reshape the Matrix

Reshape the Matrix

3
Comments
1 min read
Satisfiability of Equality Equations

Satisfiability of Equality Equations

3
Comments
1 min read
Check If Two String Arrays are Equivalent

Check If Two String Arrays are Equivalent

3
Comments
1 min read
Largest 3-Same-Digit Number in String

Largest 3-Same-Digit Number in String

3
Comments
1 min read
Word Subsets

Word Subsets

3
Comments
1 min read
Count Numbers with Unique Digits

Count Numbers with Unique Digits

3
Comments
1 min read
Number of Steps to Reduce a Number in Binary Representation to One

Number of Steps to Reduce a Number in Binary Representation to One

3
Comments
1 min read
Edit Distance

Edit Distance

3
Comments
1 min read
First Unique Character in a String

First Unique Character in a String

3
Comments
1 min read
Duplicate Zeros

Duplicate Zeros

3
Comments
1 min read
Remove All Adjacent Duplicates In String

Remove All Adjacent Duplicates In String

3
Comments
1 min read
Single Number

Single Number

3
Comments
1 min read
Keys and Rooms

Keys and Rooms

3
Comments
2 min read
Nim Game

Nim Game

3
Comments
1 min read
Count Good Triplets

Count Good Triplets

3
Comments
1 min read
Next Greater Element I

Next Greater Element I

3
Comments
2 min read
Partition Array According to Given Pivot

Partition Array According to Given Pivot

3
Comments
2 min read
Find the Minimum and Maximum Number of Nodes Between Critical Points

Find the Minimum and Maximum Number of Nodes Between Critical Points

3
Comments
3 min read
Swapping Nodes in a Linked List

Swapping Nodes in a Linked List

3
Comments
1 min read
Target Sum

Target Sum

3
Comments
2 min read
Create Binary Tree From Descriptions

Create Binary Tree From Descriptions

3
Comments
2 min read
Check If Word Is Valid After Substitutions

Check If Word Is Valid After Substitutions

3
Comments
1 min read
Subarray Sums Divisible by K

Subarray Sums Divisible by K

3
Comments
1 min read
Check If a String Contains All Binary Codes of Size K

Check If a String Contains All Binary Codes of Size K

3
Comments
1 min read
Search a 2D Matrix

Search a 2D Matrix

3
Comments
1 min read
Redundant Connection

Redundant Connection

3
Comments
2 min read
Serialize and Deserialize Binary Tree

Serialize and Deserialize Binary Tree

3
Comments
2 min read
Valid Sudoku

Valid Sudoku

3
Comments
2 min read
First Missing Positive

First Missing Positive

3
Comments
1 min read
Search a 2D Matrix II

Search a 2D Matrix II

3
Comments
1 min read
Number of Ways to Select Buildings

Number of Ways to Select Buildings

Comments
2 min read
Pacific Atlantic Water Flow

Pacific Atlantic Water Flow

3
Comments
2 min read
Check if All A's Appears Before All B's

Check if All A's Appears Before All B's

3
Comments
1 min read
Path Sum

Path Sum

3
Comments
2 min read
Minimum Lines to Represent a Line Chart

Minimum Lines to Represent a Line Chart

3
Comments
2 min read
Roman to Integer

Roman to Integer

3
Comments
2 min read
Minimum Operations to Make Array Equal

Minimum Operations to Make Array Equal

3
Comments
1 min read
Reverse Integer

Reverse Integer

3
Comments
1 min read
Palindrome Number

Palindrome Number

3
Comments
1 min read
Find the Distance Value Between Two Arrays

Find the Distance Value Between Two Arrays

3
Comments
1 min read
Smallest String With A Given Numeric Value

Smallest String With A Given Numeric Value

3
Comments
1 min read
Loud and Rich

Loud and Rich

3
Comments
2 min read
Calculate Digit Sum of a String

Calculate Digit Sum of a String

3
Comments
2 min read
Binary Tree Preorder Traversal

Binary Tree Preorder Traversal

3
Comments
1 min read
Convert 1D Array Into 2D Array

Convert 1D Array Into 2D Array

3
Comments
2 min read
Count Artifacts That Can Be Extracted

Count Artifacts That Can Be Extracted

3
Comments
2 min read
Smallest Value of the Rearranged Number

Smallest Value of the Rearranged Number

3
Comments
1 min read
Range Addition II

Range Addition II

3
Comments
1 min read
Water Bottles

Water Bottles

3
Comments
1 min read
Split Linked List in Parts

Split Linked List in Parts

3
Comments
2 min read
Jump Game

Jump Game

3
Comments
1 min read
Linked List Cycle

Linked List Cycle

3
Comments
2 min read
Rectangle Area

Rectangle Area

3
Comments
1 min read
Remove Zero Sum Consecutive Nodes from Linked List

Remove Zero Sum Consecutive Nodes from Linked List

3
Comments
1 min read
Minimum Operations to Make the Array Increasing

Minimum Operations to Make the Array Increasing

3
Comments
1 min read
Maximum Product After K Increments

Maximum Product After K Increments

3
Comments
2 min read
Add Binary

Add Binary

3
Comments
1 min read
Rearrange Words in a Sentence

Rearrange Words in a Sentence

3
Comments
1 min read
Shortest Path Visiting All Nodes

Shortest Path Visiting All Nodes

3
Comments
1 min read
House Robber

House Robber

3
Comments
1 min read
Relative Ranks

Relative Ranks

3
Comments
1 min read
Maximum Product Subarray

Maximum Product Subarray

3
Comments
1 min read
Reverse Bits

Reverse Bits

3
Comments
1 min read
Subarray Sum Equals K

Subarray Sum Equals K

3
Comments
1 min read
Third Maximum Number

Third Maximum Number

3
Comments
1 min read
Longest Subarray of 1's After Deleting One Element

Longest Subarray of 1's After Deleting One Element

Comments
1 min read
Network Delay Time

Network Delay Time

Comments
1 min read
Count of Matches in Tournament

Count of Matches in Tournament

3
Comments
1 min read
Count Elements With Strictly Smaller and Greater Elements

Count Elements With Strictly Smaller and Greater Elements

3
Comments
1 min read
Is Graph Bipartite?

Is Graph Bipartite?

Comments
2 min read
Check If It Is a Straight Line

Check If It Is a Straight Line

Comments
1 min read
Design an ATM Machine

Design an ATM Machine

Comments
3 min read
Remove Invalid Parentheses

Remove Invalid Parentheses

3
Comments
1 min read
Remove All Adjacent Duplicates in String II

Remove All Adjacent Duplicates in String II

3
Comments
1 min read
Binary Search Tree Iterator

Binary Search Tree Iterator

3
Comments
2 min read
Find Smallest Letter Greater Than Target

Find Smallest Letter Greater Than Target

3
Comments
1 min read
K Divisible Elements Subarrays

K Divisible Elements Subarrays

3
Comments
2 min read
Jump Game II

Jump Game II

3
Comments
1 min read
Find All Anagrams in a String

Find All Anagrams in a String

3
Comments
1 min read
Insert Interval

Insert Interval

3
Comments
1 min read
Linked List Random Node

Linked List Random Node

3
Comments
2 min read
Sequentially Ordinal Rank Tracker

Sequentially Ordinal Rank Tracker

3
Comments
3 min read
Sort the Jumbled Numbers

Sort the Jumbled Numbers

Comments
2 min read
Check if Binary String Has at Most One Segment of Ones

Check if Binary String Has at Most One Segment of Ones

Comments
1 min read
Palindromic Substrings

Palindromic Substrings

Comments
1 min read
Contains Duplicate

Contains Duplicate

3
Comments
1 min read
Design a Stack With Increment Operation

Design a Stack With Increment Operation

3
Comments
2 min read
Longest Common Subsequence

Longest Common Subsequence

3
Comments
1 min read
Check if There Is a Valid Parentheses String Path

Check if There Is a Valid Parentheses String Path

Comments
2 min read
Sort Array by Increasing Frequency

Sort Array by Increasing Frequency

3
Comments
1 min read
Removing Minimum Number of Magic Beans

Removing Minimum Number of Magic Beans

3
Comments
2 min read
Reverse Prefix of Word

Reverse Prefix of Word

3
Comments
1 min read
Random Flip Matrix

Random Flip Matrix

3
Comments
2 min read
3Sum

3Sum

3
Comments
1 min read
Unique Binary Search Trees

Unique Binary Search Trees

3
Comments
1 min read
Find Center of Star Graph

Find Center of Star Graph

3
Comments
1 min read
Push Dominoes

Push Dominoes

3
Comments
2 min read
Construct Binary Search Tree from Preorder Traversal

Construct Binary Search Tree from Preorder Traversal

3
Comments
2 min read
Keyboard Row

Keyboard Row

3
Comments
1 min read
Repeated Substring Pattern

Repeated Substring Pattern

Comments
1 min read
Power of Three

Power of Three

3
Comments
1 min read
Insert Delete GetRandom O(1)

Insert Delete GetRandom O(1)

3
Comments
2 min read
Jump Game III

Jump Game III

3
Comments
1 min read
Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

3
Comments
1 min read
Unique Paths II

Unique Paths II

3
Comments
2 min read
All Ancestors of a Node in a Directed Acyclic Graph

All Ancestors of a Node in a Directed Acyclic Graph

3
Comments
2 min read
Basic Calculator II

Basic Calculator II

3
Comments
1 min read
Factorial Trailing Zeroes

Factorial Trailing Zeroes

Comments
1 min read
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Comments
2 min read
Find First Palindromic String in the Array

Find First Palindromic String in the Array

Comments
1 min read
K-th Symbol in Grammar

K-th Symbol in Grammar

Comments
1 min read
Russian Doll Envelopes

Russian Doll Envelopes

Comments
1 min read
Replace Elements in an Array

Replace Elements in an Array

4
Comments
2 min read
Arithmetic Slices

Arithmetic Slices

3
Comments
1 min read
Design a Text Editor

Design a Text Editor

3
Comments
3 min read
Shortest Palindrome

Shortest Palindrome

3
Comments
1 min read
Sum of Root To Leaf Binary Numbers

Sum of Root To Leaf Binary Numbers

Comments
1 min read
Find First and Last Position of Element in Sorted Array

Find First and Last Position of Element in Sorted Array

Comments
1 min read
Triangle

Triangle

Comments
1 min read
Reduce Array Size to The Half

Reduce Array Size to The Half

Comments
1 min read
Longest Palindrome

Longest Palindrome

3
Comments
1 min read
Increasing Triplet Subsequence

Increasing Triplet Subsequence

3
Comments
1 min read
Minimum Number of Operations to Move All Balls to Each Box

Minimum Number of Operations to Move All Balls to Each Box

3
Comments
1 min read
Bulls and Cows

Bulls and Cows

3
Comments
2 min read
Next Greater Node In Linked List

Next Greater Node In Linked List

3
Comments
1 min read
Path With Minimum Effort

Path With Minimum Effort

3
Comments
2 min read
Even Odd Tree

Even Odd Tree

Comments
2 min read
Minimum Distance Between BST Nodes

Minimum Distance Between BST Nodes

Comments
1 min read
Permutation in String

Permutation in String

Comments
1 min read
Number of Smooth Descent Periods of a Stock

Number of Smooth Descent Periods of a Stock

Comments
1 min read
Count Items Matching a Rule

Count Items Matching a Rule

Comments
1 min read
Jewels and Stones

Jewels and Stones

Comments
1 min read
Number Complement

Number Complement

Comments
1 min read
Array Nesting

Array Nesting

Comments
1 min read
Number of Segments in a String

Number of Segments in a String

Comments
1 min read
Find Triangular Sum of an Array

Find Triangular Sum of an Array

3
Comments
1 min read
Max Consecutive Ones

Max Consecutive Ones

3
Comments
1 min read
Two Furthest Houses With Different Colors

Two Furthest Houses With Different Colors

3
Comments
2 min read
Merge Two Sorted Lists

Merge Two Sorted Lists

3
Comments
1 min read
Maximum Length of Pair Chain

Maximum Length of Pair Chain

3
Comments
1 min read
Find Peak Element

Find Peak Element

3
Comments
1 min read
Add Digits

Add Digits

3
Comments
1 min read
Maximum Swap

Maximum Swap

3
Comments
1 min read
Delete and Earn

Delete and Earn

3
Comments
1 min read
Set Matrix Zeroes

Set Matrix Zeroes

3
Comments
1 min read
Delete Node in a Linked List

Delete Node in a Linked List

3
Comments
1 min read
Single Number III

Single Number III

3
Comments
1 min read
Minimum Deletions to Make String Balanced

Minimum Deletions to Make String Balanced

3
Comments
1 min read
Letter Combinations of a Phone Number

Letter Combinations of a Phone Number

3
Comments
1 min read
Gas Station

Gas Station

3
Comments
2 min read
3Sum Closest

3Sum Closest

3
Comments
1 min read
Ones and Zeroes

Ones and Zeroes

3
Comments
2 min read
String to Integer (atoi)

String to Integer (atoi)

3
Comments
2 min read
Number of Strings That Appear as Substrings in Word

Number of Strings That Appear as Substrings in Word

3
Comments
1 min read
Find and Replace Pattern

Find and Replace Pattern

3
Comments
1 min read
Merge Sorted Array

Merge Sorted Array

3
Comments
2 min read
Count Prefixes of a Given String

Count Prefixes of a Given String

3
Comments
1 min read
Remove Duplicates from Sorted List

Remove Duplicates from Sorted List

3
Comments
1 min read
Replace Words

Replace Words

3
Comments
2 min read
Maximize Distance to Closest Person

Maximize Distance to Closest Person

3
Comments
2 min read
Maximum Subarray

Maximum Subarray

3
Comments
1 min read
House Robber III

House Robber III

3
Comments
2 min read
Design Add and Search Words Data Structure

Design Add and Search Words Data Structure

3
Comments
2 min read
Partition Array Into Three Parts With Equal Sum

Partition Array Into Three Parts With Equal Sum

3
Comments
1 min read
Valid Perfect Square

Valid Perfect Square

6
Comments
1 min read
Search in Rotated Sorted Array II

Search in Rotated Sorted Array II

3
Comments
2 min read
Longest Substring Without Repeating Characters

Longest Substring Without Repeating Characters

3
Comments
1 min read
Minimum Average Difference

Minimum Average Difference

3
Comments
2 min read
Partition Equal Subset Sum

Partition Equal Subset Sum

3
Comments
1 min read
Perfect Squares

Perfect Squares

6
Comments
1 min read
Smallest Subtree with all the Deepest Nodes

Smallest Subtree with all the Deepest Nodes

3
Comments
2 min read
Goal Parser Interpretation

Goal Parser Interpretation

3
Comments
1 min read
Find the Duplicate Number

Find the Duplicate Number

3
Comments
1 min read
Sum of Square Numbers

Sum of Square Numbers

3
Comments
1 min read
Widest Vertical Area Between Two Points Containing No Points

Widest Vertical Area Between Two Points Containing No Points

3
Comments
1 min read
Binary Number with Alternating Bits

Binary Number with Alternating Bits

4
Comments
1 min read
K-diff Pairs in an Array

K-diff Pairs in an Array

3
Comments
1 min read
Happy Number

Happy Number

Comments
1 min read
Angle Between Hands of a Clock

Angle Between Hands of a Clock

Comments
1 min read
Partition Labels

Partition Labels

3
Comments
1 min read
Score of Parentheses

Score of Parentheses

3
Comments
1 min read
A Number After a Double Reversal

A Number After a Double Reversal

Comments
1 min read
Sequential Digits

Sequential Digits

Comments
1 min read
Robot Return to Origin

Robot Return to Origin

3
Comments
1 min read
Maximum Total Importance of Roads

Maximum Total Importance of Roads

3
Comments
2 min read
Wiggle Subsequence

Wiggle Subsequence

3
Comments
2 min read
Top K Frequent Elements

Top K Frequent Elements

3
Comments
1 min read
Minimize Result by Adding Parentheses to Expression

Minimize Result by Adding Parentheses to Expression

3
Comments
2 min read
First Bad Version

First Bad Version

3
Comments
1 min read
Truncate Sentence

Truncate Sentence

3
Comments
1 min read
Intersection of Two Linked Lists

Intersection of Two Linked Lists

3
Comments
3 min read
Minimum Add to Make Parentheses Valid

Minimum Add to Make Parentheses Valid

3
Comments
1 min read
Two Sum

Two Sum

3
Comments
1 min read
N-th Tribonacci Number

N-th Tribonacci Number

3
Comments
1 min read
Find N Unique Integers Sum up to Zero

Find N Unique Integers Sum up to Zero

3
Comments
1 min read
Simplified Fractions

Simplified Fractions

3
Comments
1 min read
Running Sum of 1d Array

Running Sum of 1d Array

3
Comments
1 min read
Array Partition I

Array Partition I

3
Comments
1 min read
Replace Elements with Greatest Element on Right Side

Replace Elements with Greatest Element on Right Side

3
Comments
2 min read
Number of Ways to Buy Pens and Pencils

Number of Ways to Buy Pens and Pencils

3
Comments 1
1 min read
Append K Integers With Minimal Sum

Append K Integers With Minimal Sum

3
Comments
2 min read
Number of Equivalent Domino Pairs

Number of Equivalent Domino Pairs

3
Comments
1 min read
Implement strStr()

Implement strStr()

3
Comments
1 min read
Longest Palindrome by Concatenating Two Letter Words

Longest Palindrome by Concatenating Two Letter Words

3
Comments
1 min read
Kids With the Greatest Number of Candies

Kids With the Greatest Number of Candies

3
Comments 1
2 min read
Daily Temperatures

Daily Temperatures

3
Comments
1 min read
Design Underground System

Design Underground System

4
Comments
3 min read
Sort an Array

Sort an Array

4
Comments
1 min read
Dungeon Game

Dungeon Game

4
Comments
2 min read
Relative Sort Array

Relative Sort Array

1
Comments
1 min read
Restore IP Addresses

Restore IP Addresses

1
Comments
1 min read
Longest Path With Different Adjacent Characters

Longest Path With Different Adjacent Characters

1
Comments
2 min read
Longest Happy Prefix

Longest Happy Prefix

1
Comments
1 min read
Valid Triangle Number

Valid Triangle Number

1
Comments
1 min read
Shuffle the Array

Shuffle the Array

1
Comments
1 min read
String Compression

String Compression

1
Comments
2 min read
Minimum Absolute Difference

Minimum Absolute Difference

4
Comments
1 min read
Find Lucky Integer in an Array

Find Lucky Integer in an Array

3
Comments
1 min read
Populating Next Right Pointers in Each Node

Populating Next Right Pointers in Each Node

4
Comments
2 min read
How Many Numbers Are Smaller Than the Current Number

How Many Numbers Are Smaller Than the Current Number

4
Comments
1 min read
Maximum Number of Weeks for Which You Can Work

Maximum Number of Weeks for Which You Can Work

4
Comments
2 min read
Number of Enclaves

Number of Enclaves

1
Comments
2 min read
All Paths From Source to Target

All Paths From Source to Target

1
Comments
1 min read
Guess Number Higher or Lower

Guess Number Higher or Lower

1
Comments
1 min read
Sqrt(x)

Sqrt(x)

1
Comments
1 min read
Unique Morse Code Words

Unique Morse Code Words

4
Comments
1 min read
Check if the Sentence Is Pangram

Check if the Sentence Is Pangram

4
Comments
1 min read
Find Bottom Left Tree Value

Find Bottom Left Tree Value

4
Comments
1 min read
Minimize Maximum Pair Sum in Array

Minimize Maximum Pair Sum in Array

4
Comments
1 min read
Game of Life

Game of Life

3
Comments
2 min read
Continuous Subarray Sum

Continuous Subarray Sum

4
Comments
1 min read
All Possible Full Binary Trees

All Possible Full Binary Trees

4
Comments
1 min read
Maximum Binary Tree

Maximum Binary Tree

4
Comments
2 min read
Next Greater Element III

Next Greater Element III

4
Comments
1 min read
Longer Contiguous Segments of Ones than Zeros

Longer Contiguous Segments of Ones than Zeros

4
Comments
2 min read
Scramble String

Scramble String

4
Comments
2 min read
2 Keys Keyboard

2 Keys Keyboard

4
Comments
1 min read
Bulb Switcher

Bulb Switcher

4
Comments
1 min read
Find Greatest Common Divisor of Array

Find Greatest Common Divisor of Array

4
Comments
1 min read
Middle of the Linked List

Middle of the Linked List

3
Comments
1 min read
Solve the Equation

Solve the Equation

4
Comments
1 min read
Word Pattern

Word Pattern

4
Comments
1 min read
Subsets

Subsets

4
Comments
1 min read
Subrectangle Queries

Subrectangle Queries

4
Comments
2 min read
Snakes and Ladders

Snakes and Ladders

4
Comments
3 min read
Check If It Is a Good Array

Check If It Is a Good Array

4
Comments
1 min read
Basic Calculator

Basic Calculator

3
Comments
2 min read
Largest Number At Least Twice of Others

Largest Number At Least Twice of Others

3
Comments
1 min read
Shortest Path in Binary Matrix

Shortest Path in Binary Matrix

4
Comments
2 min read
Number of Dice Rolls With Target Sum

Number of Dice Rolls With Target Sum

4
Comments
1 min read
Find Right Interval

Find Right Interval

4
Comments
2 min read
Intersection of Multiple Arrays

Intersection of Multiple Arrays

4
Comments
1 min read
Finding 3-Digit Even Numbers

Finding 3-Digit Even Numbers

4
Comments
2 min read
Validate Stack Sequences

Validate Stack Sequences

4
Comments
1 min read
Max Points on a Line

Max Points on a Line

4
Comments
2 min read
Sort List

Sort List

4
Comments
1 min read
Maximum Depth of N-ary Tree

Maximum Depth of N-ary Tree

4
Comments
1 min read
Remove Covered Intervals

Remove Covered Intervals

3
Comments
1 min read
Apply Discount to Prices

Apply Discount to Prices

3
Comments
2 min read
Self Dividing Numbers

Self Dividing Numbers

3
Comments
1 min read
Base 7

Base 7

3
Comments
1 min read
Evaluate Division

Evaluate Division

4
Comments
2 min read
Last Substring in Lexicographical Order

Last Substring in Lexicographical Order

4
Comments
1 min read
Remove Digit From Number to Maximize Result

Remove Digit From Number to Maximize Result

4
Comments
1 min read
Add Two Numbers

Add Two Numbers

4
Comments
1 min read
Word Search

Word Search

4
Comments
2 min read
Sum of Digits of String After Convert

Sum of Digits of String After Convert

4
Comments
1 min read
Group Anagrams

Group Anagrams

4
Comments
1 min read
Length of Last Word

Length of Last Word

4
Comments
1 min read
Binary Prefix Divisible By 5

Binary Prefix Divisible By 5

4
Comments
1 min read
Binary Tree Zigzag Level Order Traversal

Binary Tree Zigzag Level Order Traversal

4
Comments
1 min read
Binary Tree Level Order Traversal II

Binary Tree Level Order Traversal II

4
Comments
1 min read
Spiral Matrix II

Spiral Matrix II

4
Comments
1 min read
Insert Delete GetRandom O(1) - Duplicates allowed

Insert Delete GetRandom O(1) - Duplicates allowed

4
Comments
2 min read
Rotate Array

Rotate Array

4
Comments
1 min read
Container With Most Water

Container With Most Water

4
Comments
1 min read
Height Checker

Height Checker

4
Comments
1 min read
Detect Capital

Detect Capital

4
Comments
1 min read
Invert Binary Tree

Invert Binary Tree

4
Comments
1 min read
Sort the Matrix Diagonally

Sort the Matrix Diagonally

4
Comments
2 min read
Ransom Note

Ransom Note

4
Comments
1 min read
Delete Columns to Make Sorted

Delete Columns to Make Sorted

4
Comments
2 min read
Find Elements in a Contaminated Binary Tree

Find Elements in a Contaminated Binary Tree

4
Comments
2 min read
Check if Number Has Equal Digit Count and Digit Value

Check if Number Has Equal Digit Count and Digit Value

4
Comments
1 min read
Remove Linked List Elements

Remove Linked List Elements

4
Comments
1 min read
Flipping an Image

Flipping an Image

4
Comments
1 min read
Integer to Roman

Integer to Roman

4
Comments
2 min read
Decode the Slanted Ciphertext

Decode the Slanted Ciphertext

4
Comments
2 min read
Maximum Difference Between Node and Ancestor

Maximum Difference Between Node and Ancestor

4
Comments
1 min read
Thousand Separator

Thousand Separator

3
Comments
1 min read
Clumsy Factorial

Clumsy Factorial

4
Comments
1 min read
Flatten a Multilevel Doubly Linked List

Flatten a Multilevel Doubly Linked List

1
Comments
2 min read
Check Completeness of a Binary Tree

Check Completeness of a Binary Tree

1
Comments
1 min read
Minimum Falling Path Sum

Minimum Falling Path Sum

1
Comments
1 min read
Consecutive Characters

Consecutive Characters

1
Comments
1 min read
Maximum Twin Sum of a Linked List

Maximum Twin Sum of a Linked List

1
Comments
2 min read
Letter Tile Possibilities

Letter Tile Possibilities

1
Comments
1 min read
Baseball Game

Baseball Game

1
Comments
2 min read
Remove Outermost Parentheses

Remove Outermost Parentheses

1
Comments
1 min read
Binary Tree Tilt

Binary Tree Tilt

1
Comments
2 min read
Maximal Network Rank

Maximal Network Rank

1
Comments
2 min read
Symmetric Tree

Symmetric Tree

1
Comments
1 min read
Maximum Product of Three Numbers

Maximum Product of Three Numbers

Comments
1 min read
Peak Index in a Mountain Array

Peak Index in a Mountain Array

Comments
1 min read
Reverse Only Letters

Reverse Only Letters

Comments
1 min read
Largest Number

Largest Number

Comments
1 min read
Peeking Iterator

Peeking Iterator

Comments
2 min read
Longest Happy String

Longest Happy String

Comments
1 min read
1-bit and 2-bit Characters

1-bit and 2-bit Characters

2
Comments
1 min read
Min Stack

Min Stack

Comments
2 min read
K Closest Points to Origin

K Closest Points to Origin

Comments
1 min read
Count Common Words With One Occurrence

Count Common Words With One Occurrence

Comments
1 min read
Zigzag Conversion

Zigzag Conversion

Comments
1 min read
Sum of Left Leaves

Sum of Left Leaves

4
Comments
1 min read
Valid Square

Valid Square

4
Comments
2 min read
Clone Graph

Clone Graph

4
Comments
2 min read
Smallest Index With Equal Value

Smallest Index With Equal Value

4
Comments
1 min read
Longest Valid Parentheses

Longest Valid Parentheses

4
Comments
1 min read
Construct the Rectangle

Construct the Rectangle

4
Comments
1 min read
Maximum Length of Repeated Subarray

Maximum Length of Repeated Subarray

4
Comments
1 min read
Increasing Subsequences

Increasing Subsequences

4
Comments
1 min read
Maximum Product of Word Lengths

Maximum Product of Word Lengths

4
Comments
1 min read
Goat Latin

Goat Latin

4
Comments
2 min read
Average of Levels in Binary Tree

Average of Levels in Binary Tree

4
Comments
1 min read
Determine if String Halves Are Alike

Determine if String Halves Are Alike

4
Comments
1 min read
Boats to Save People

Boats to Save People

4
Comments 1
1 min read
Rings and Rods

Rings and Rods

4
Comments
2 min read
132 Pattern

132 Pattern

4
Comments
2 min read
Squares of a Sorted Array

Squares of a Sorted Array

4
Comments
1 min read
Maximum Path Quality of a Graph

Maximum Path Quality of a Graph

4
Comments
2 min read
Diagonal Traverse

Diagonal Traverse

4
Comments
1 min read
Remove Duplicates from Sorted List II

Remove Duplicates from Sorted List II

4
Comments
1 min read
Binary Search Tree to Greater Sum Tree

Binary Search Tree to Greater Sum Tree

4
Comments
1 min read
Kth Distinct String in an Array

Kth Distinct String in an Array

4
Comments
1 min read
Maximum Split of Positive Even Integers

Maximum Split of Positive Even Integers

4
Comments
2 min read
Missing Number

Missing Number

4
Comments
1 min read
Binary Gap

Binary Gap

4
Comments
1 min read
4Sum II

4Sum II

4
Comments
1 min read
Shuffle an Array

Shuffle an Array

4
Comments
1 min read
Successful Pairs of Spells and Potions

Successful Pairs of Spells and Potions

4
Comments
2 min read
Maximum Frequency Stack

Maximum Frequency Stack

4
Comments
2 min read
Concatenation of Array

Concatenation of Array

4
Comments
1 min read
Check If N and Its Double Exist

Check If N and Its Double Exist

4
Comments
1 min read
Sort Colors

Sort Colors

4
Comments
1 min read
H-Index II

H-Index II

4
Comments
1 min read
Construct Binary Tree from Inorder and Postorder Traversal

Construct Binary Tree from Inorder and Postorder Traversal

4
Comments
1 min read
Evaluate Reverse Polish Notation

Evaluate Reverse Polish Notation

4
Comments
1 min read
Linked List Cycle II

Linked List Cycle II

3
Comments
2 min read
Pascal's Triangle II

Pascal's Triangle II

5
Comments
1 min read
Search in a Binary Search Tree

Search in a Binary Search Tree

4
Comments
1 min read
Design HashSet

Design HashSet

4
Comments
2 min read
Fibonacci Number

Fibonacci Number

4
Comments
1 min read
Most Common Word

Most Common Word

4
Comments
1 min read
Merge Two Binary Trees

Merge Two Binary Trees

4
Comments
2 min read
Minimum Number of Swaps to Make the String Balanced

Minimum Number of Swaps to Make the String Balanced

6
Comments 1
1 min read
Find Target Indices After Sorting Array

Find Target Indices After Sorting Array

5
Comments
1 min read
Sort Array By Parity

Sort Array By Parity

4
Comments
1 min read
Min Cost to Connect All Points

Min Cost to Connect All Points

4
Comments
2 min read
Maximal Square

Maximal Square

4
Comments
1 min read
Divide Array Into Equal Pairs

Divide Array Into Equal Pairs

3
Comments
1 min read
Maximum 69 Number

Maximum 69 Number

5
Comments
1 min read
Leaf-Similar Trees

Leaf-Similar Trees

3
Comments
1 min read
Transpose Matrix

Transpose Matrix

2
Comments
1 min read
Gray Code

Gray Code

4
Comments
1 min read
Count the Hidden Sequences

Count the Hidden Sequences

4
Comments
2 min read
Search in Rotated Sorted Array

Search in Rotated Sorted Array

8
Comments
2 min read
Largest Combination With Bitwise AND Greater Than Zero

Largest Combination With Bitwise AND Greater Than Zero

4
Comments
1 min read
Find All K-Distant Indices in an Array

Find All K-Distant Indices in an Array

4
Comments
2 min read
Kth Smallest Element in a Sorted Matrix

Kth Smallest Element in a Sorted Matrix

3
Comments
1 min read
Binary Tree Pruning

Binary Tree Pruning

4
Comments
1 min read
Positions of Large Groups

Positions of Large Groups

4
Comments
1 min read
Same Tree

Same Tree

4
Comments
1 min read
Next Permutation

Next Permutation

1
Comments
2 min read
Flip Equivalent Binary Trees

Flip Equivalent Binary Trees

1
Comments
1 min read
Longest Uncommon Subsequence I

Longest Uncommon Subsequence I

3
Comments
1 min read
Subtree of Another Tree

Subtree of Another Tree

5
Comments
1 min read
Univalued Binary Tree

Univalued Binary Tree

4
Comments
1 min read
Maximum Binary Tree II

Maximum Binary Tree II

3
Comments
2 min read
Construct String from Binary Tree

Construct String from Binary Tree

4
Comments
1 min read
Combination Sum III

Combination Sum III

4
Comments
1 min read
Minimum Path Sum

Minimum Path Sum

3
Comments
1 min read
Interleaving String

Interleaving String

4
Comments
2 min read
All Elements in Two Binary Search Trees

All Elements in Two Binary Search Trees

4
Comments
1 min read
Kth Missing Positive Number

Kth Missing Positive Number

4
Comments
1 min read
Delete Operation for Two Strings

Delete Operation for Two Strings

4
Comments
1 min read
Richest Customer Wealth

Richest Customer Wealth

3
Comments
1 min read
Minimum Operations to Reduce X to Zero

Minimum Operations to Reduce X to Zero

4
Comments
1 min read
Count Hills and Valleys in an Array

Count Hills and Valleys in an Array

4
Comments
3 min read
Maximum Consecutive Floors Without Special Floors

Maximum Consecutive Floors Without Special Floors

3
Comments 1
1 min read
Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array

3
Comments
2 min read
Assign Cookies

Assign Cookies

3
Comments
1 min read
Count of Smaller Numbers After Self

Count of Smaller Numbers After Self

4
Comments
1 min read
Strong Password Checker II

Strong Password Checker II

4
Comments
1 min read
Count Nodes Equal to Average of Subtree

Count Nodes Equal to Average of Subtree

4
Comments
2 min read
Kth Largest Element in an Array

Kth Largest Element in an Array

4
Comments
1 min read
Greatest Sum Divisible by Three

Greatest Sum Divisible by Three

4
Comments
1 min read
Find Minimum in Rotated Sorted Array

Find Minimum in Rotated Sorted Array

1
Comments
2 min read
Partition List

Partition List

1
Comments
1 min read
Maximum Difference Between Increasing Elements

Maximum Difference Between Increasing Elements

1
Comments
1 min read
Generate Parentheses

Generate Parentheses

1
Comments
1 min read
Merge Intervals

Merge Intervals

1
Comments
1 min read
Substrings of Size Three with Distinct Characters

Substrings of Size Three with Distinct Characters

1
Comments
1 min read
Construct String With Repeat Limit

Construct String With Repeat Limit

1
Comments
2 min read
Smallest Subsequence of Distinct Characters

Smallest Subsequence of Distinct Characters

Comments
1 min read
Coin Change

Coin Change

Comments
1 min read
Find Mode in Binary Search Tree

Find Mode in Binary Search Tree

1
Comments
1 min read
Maximum Nesting Depth of the Parentheses

Maximum Nesting Depth of the Parentheses

1
Comments
1 min read
Minimum Remove to Make Valid Parentheses

Minimum Remove to Make Valid Parentheses

1
Comments
1 min read
Maximum Level Sum of a Binary Tree

Maximum Level Sum of a Binary Tree

1
Comments
1 min read
Valid Parentheses

Valid Parentheses

Comments
1 min read
Move Zeroes

Move Zeroes

Comments
1 min read
Set Mismatch

Set Mismatch

1
Comments
1 min read
Two City Scheduling

Two City Scheduling

4
Comments
1 min read
Remove Element

Remove Element

4
Comments
2 min read
Count Primes

Count Primes

4
Comments
1 min read
Number of Flowers in Full Bloom

Number of Flowers in Full Bloom

4
Comments
2 min read
Flatten Binary Tree to Linked List

Flatten Binary Tree to Linked List

4
Comments
1 min read
Flood Fill

Flood Fill

3
Comments
2 min read
Critical Connections in a Network

Critical Connections in a Network

3
Comments
2 min read
Remove All Occurrences of a Substring

Remove All Occurrences of a Substring

4
Comments
1 min read
Two Sum IV - Input is a BST

Two Sum IV - Input is a BST

4
Comments
1 min read
Find Players With Zero or One Losses

Find Players With Zero or One Losses

4
Comments
2 min read
Check if Array Is Sorted and Rotated

Check if Array Is Sorted and Rotated

4
Comments
1 min read
Replace All Digits with Characters

Replace All Digits with Characters

4
Comments
1 min read
Rearrange Array Elements by Sign

Rearrange Array Elements by Sign

4
Comments
1 min read
Binary Tree Level Order Traversal

Binary Tree Level Order Traversal

4
Comments
1 min read
Number of Recent Calls

Number of Recent Calls

1
Comments
1 min read
Divide a String Into Groups of Size k

Divide a String Into Groups of Size k

1
Comments
2 min read
Reverse Linked List

Reverse Linked List

1
Comments
1 min read
Count Number of Texts

Count Number of Texts

1
Comments
2 min read
Implement Trie (Prefix Tree)

Implement Trie (Prefix Tree)

1
Comments
2 min read
Minimum Deletions to Make Array Beautiful

Minimum Deletions to Make Array Beautiful

1
Comments
2 min read
Longest Word in Dictionary

Longest Word in Dictionary

1
Comments
1 min read
Reorganize String

Reorganize String

1
Comments
1 min read
Longest Consecutive Sequence

Longest Consecutive Sequence

1
Comments
1 min read
Fraction Addition and Subtraction

Fraction Addition and Subtraction

1
Comments
2 min read
Deepest Leaves Sum

Deepest Leaves Sum

Comments
1 min read
Walking Robot Simulation

Walking Robot Simulation

1
Comments
2 min read
Number of Islands

Number of Islands

1
Comments
1 min read
Cousins in Binary Tree

Cousins in Binary Tree

1
Comments
2 min read
Car Pooling

Car Pooling

1
Comments
1 min read
Longest Univalue Path

Longest Univalue Path

1
Comments
1 min read
Find And Replace in String

Find And Replace in String

1
Comments
2 min read
Max Number of K-Sum Pairs

Max Number of K-Sum Pairs

1
Comments
1 min read
Pow(x, n)

Pow(x, n)

1
Comments
1 min read
Count and Say

Count and Say

1
Comments
1 min read
Power of Four

Power of Four

1
Comments
1 min read
Partitioning Into Minimum Number Of Deci-Binary Numbers

Partitioning Into Minimum Number Of Deci-Binary Numbers

1
Comments
1 min read
Merge Nodes in Between Zeros

Merge Nodes in Between Zeros

1
Comments
2 min read
Kth Largest Element in a Stream

Kth Largest Element in a Stream

4
Comments
1 min read
Uncommon Words from Two Sentences

Uncommon Words from Two Sentences

4
Comments
1 min read
Find the Town Judge

Find the Town Judge

4
Comments
1 min read
N-ary Tree Postorder Traversal

N-ary Tree Postorder Traversal

4
Comments
1 min read
Copy List with Random Pointer

Copy List with Random Pointer

3
Comments
2 min read
Sort Integers by The Power Value

Sort Integers by The Power Value

4
Comments
2 min read
Contains Duplicate II

Contains Duplicate II

4
Comments
1 min read
License Key Formatting

License Key Formatting

1
Comments
1 min read
Most Frequent Subtree Sum

Most Frequent Subtree Sum

3
Comments
1 min read
Find the Difference of Two Arrays

Find the Difference of Two Arrays

4
Comments
1 min read
Count Lattice Points Inside a Circle

Count Lattice Points Inside a Circle

4
Comments
2 min read
Minimum Difference Between Highest and Lowest of K Scores

Minimum Difference Between Highest and Lowest of K Scores

4
Comments
1 min read
Naming a Company

Naming a Company

4
Comments
2 min read
Numbers With Same Consecutive Differences

Numbers With Same Consecutive Differences

4
Comments
1 min read
Contiguous Array

Contiguous Array

4
Comments
1 min read
Island Perimeter

Island Perimeter

4
Comments
2 min read
4Sum

4Sum

4
Comments
1 min read
Sender With Largest Word Count

Sender With Largest Word Count

4
Comments
2 min read
Vowels of All Substrings

Vowels of All Substrings

2
Comments 3
1 min read
Text Justification

Text Justification

1
Comments
2 min read
Rearrange Characters to Make Target String

Rearrange Characters to Make Target String

4
Comments
2 min read
Reach a Number

Reach a Number

4
Comments
1 min read
Binary Tree Paths

Binary Tree Paths

1
Comments
1 min read
Largest Number After Digit Swaps by Parity

Largest Number After Digit Swaps by Parity

4
Comments
1 min read
Rotate Image

Rotate Image

4
Comments
1 min read
Diameter of Binary Tree

Diameter of Binary Tree

4
Comments
1 min read
Camelcase Matching

Camelcase Matching

4
Comments
2 min read
Employee Importance

Employee Importance

4
Comments
2 min read
Occurrences After Bigram

Occurrences After Bigram

4
Comments
1 min read
Predict the Winner

Predict the Winner

4
Comments
2 min read
Print Binary Tree

Print Binary Tree

4
Comments
2 min read
Arranging Coins

Arranging Coins

4
Comments
1 min read
Construct Binary Tree from Preorder and Inorder Traversal

Construct Binary Tree from Preorder and Inorder Traversal

4
Comments
1 min read
Find Palindrome With Fixed Length

Find Palindrome With Fixed Length

1
Comments
1 min read
Maximum Number of Coins You Can Get

Maximum Number of Coins You Can Get

1
Comments
2 min read
Distant Barcodes

Distant Barcodes

1
Comments
1 min read
Find Words That Can Be Formed by Characters

Find Words That Can Be Formed by Characters

2
Comments
1 min read
Majority Element

Majority Element

4
Comments
1 min read
Minimum Operations to Convert Number

Minimum Operations to Convert Number

Comments
2 min read
Teemo Attacking

Teemo Attacking

1
Comments
2 min read
Count Number of Teams

Count Number of Teams

1
Comments
1 min read
Construct Binary Tree from Preorder and Postorder Traversal

Construct Binary Tree from Preorder and Postorder Traversal

1
Comments
2 min read
Rank Transform of an Array

Rank Transform of an Array

1
Comments
1 min read
Minimum Index Sum of Two Lists

Minimum Index Sum of Two Lists

1
Comments
1 min read
Unique Paths III

Unique Paths III

Comments
2 min read
Find the Middle Index in Array

Find the Middle Index in Array

3
Comments
1 min read
Maximum Bags With Full Capacity of Rocks

Maximum Bags With Full Capacity of Rocks

3
Comments
2 min read
Subtract the Product and Sum of Digits of an Integer

Subtract the Product and Sum of Digits of an Integer

3
Comments
1 min read
Calculate Amount Paid in Taxes

Calculate Amount Paid in Taxes

3
Comments
2 min read
Subsets II

Subsets II

Comments
1 min read
Permutations II

Permutations II

3
Comments
1 min read
Plus One

Plus One

3
Comments
1 min read
Two Out of Three

Two Out of Three

3
Comments
1 min read
Single Element in a Sorted Array

Single Element in a Sorted Array

3
Comments
1 min read
Sudoku Solver

Sudoku Solver

3
Comments
2 min read
Counting Bits

Counting Bits

3
Comments
1 min read
Design Parking System

Design Parking System

3
Comments
2 min read
Find All Duplicates in an Array

Find All Duplicates in an Array

3
Comments
1 min read
Find All Lonely Numbers in the Array

Find All Lonely Numbers in the Array

3
Comments
1 min read
Heaters

Heaters

3
Comments
1 min read
Percentage of Letter in String

Percentage of Letter in String

3
Comments 1
1 min read
Sum of Nodes with Even-Valued Grandparent

Sum of Nodes with Even-Valued Grandparent

3
Comments
1 min read
Unique Email Addresses

Unique Email Addresses

3
Comments
2 min read
The K Weakest Rows in a Matrix

The K Weakest Rows in a Matrix

3
Comments
2 min read
Maximum XOR of Two Numbers in an Array

Maximum XOR of Two Numbers in an Array

3
Comments
1 min read
Add Strings

Add Strings

3
Comments
1 min read
Regular Expression Matching

Regular Expression Matching

Comments
2 min read
Longest Increasing Path in a Matrix

Longest Increasing Path in a Matrix

Comments
2 min read
Integer Break

Integer Break

Comments
1 min read
Shift 2D Grid

Shift 2D Grid

1
Comments
1 min read
Minimum Time to Type Word Using Special Typewriter

Minimum Time to Type Word Using Special Typewriter

2
Comments
2 min read
Maximum Product Difference Between Two Pairs

Maximum Product Difference Between Two Pairs

4
Comments
1 min read
Reconstruct a 2-Row Binary Matrix

Reconstruct a 2-Row Binary Matrix

4
Comments
2 min read
Maximum Gap

Maximum Gap

1
Comments
1 min read
Construct K Palindrome Strings

Construct K Palindrome Strings

1
Comments
1 min read
Minimum Cost For Tickets

Minimum Cost For Tickets

1
Comments
2 min read
Sum Root to Leaf Numbers

Sum Root to Leaf Numbers

1
Comments
2 min read
Unique Binary Search Trees II

Unique Binary Search Trees II

1
Comments
1 min read
Maximize Number of Subsequences in a String

Maximize Number of Subsequences in a String

1
Comments
2 min read
Ugly Number

Ugly Number

1
Comments
1 min read
Lowest Common Ancestor of Deepest Leaves

Lowest Common Ancestor of Deepest Leaves

1
Comments
2 min read
Sort Even and Odd Indices Independently

Sort Even and Odd Indices Independently

1
Comments
2 min read
Bitwise AND of Numbers Range

Bitwise AND of Numbers Range

4
Comments
1 min read
To Lower Case

To Lower Case

4
Comments
1 min read
Contains Duplicate III

Contains Duplicate III

4
Comments
1 min read
Multiply Strings

Multiply Strings

4
Comments
1 min read
Binary Search

Binary Search

4
Comments
1 min read
N-ary Tree Level Order Traversal

N-ary Tree Level Order Traversal

4
Comments
1 min read
Number Of Rectangles That Can Form The Largest Square

Number Of Rectangles That Can Form The Largest Square

4
Comments
1 min read
Valid Palindrome II

Valid Palindrome II

4
Comments
1 min read
Fruit Into Baskets

Fruit Into Baskets

4
Comments
2 min read
Find Largest Value in Each Tree Row

Find Largest Value in Each Tree Row

1
Comments
1 min read
Next Greater Element II

Next Greater Element II

1
Comments
1 min read
Find Resultant Array After Removing Anagrams

Find Resultant Array After Removing Anagrams

1
Comments
2 min read
Keep Multiplying Found Values by Two

Keep Multiplying Found Values by Two

1
Comments
1 min read
Check if Every Row and Column Contains All Numbers

Check if Every Row and Column Contains All Numbers

1
Comments
1 min read
Divide Two Integers

Divide Two Integers

2
Comments
1 min read
Validate IP Address

Validate IP Address

4
Comments
2 min read
Image Smoother

Image Smoother

3
Comments
2 min read
Lowest Common Ancestor of a Binary Tree

Lowest Common Ancestor of a Binary Tree

4
Comments
2 min read
Permutation Sequence

Permutation Sequence

4
Comments
1 min read
Sum of Digits in Base K

Sum of Digits in Base K

4
Comments
1 min read
Implement Stack using Queues

Implement Stack using Queues

4
Comments
2 min read
Maximum Distance Between a Pair of Values

Maximum Distance Between a Pair of Values

4
Comments
2 min read
Count Number of Rectangles Containing Each Point

Count Number of Rectangles Containing Each Point

3
Comments
2 min read
Subdomain Visit Count

Subdomain Visit Count

4
Comments
2 min read
Shortest Subarray with Sum at Least K

Shortest Subarray with Sum at Least K

4
Comments
2 min read
House Robber II

House Robber II

4
Comments
2 min read
Partition Array Such That Maximum Difference Is K

Partition Array Such That Maximum Difference Is K

4
Comments
2 min read
Palindrome Linked List

Palindrome Linked List

4
Comments
1 min read
Implement Rand10() Using Rand7()

Implement Rand10() Using Rand7()

4
Comments
1 min read
Find Common Characters

Find Common Characters

4
Comments
1 min read
Fizz Buzz

Fizz Buzz

4
Comments
1 min read
Permutations

Permutations

4
Comments
1 min read
Grid Game

Grid Game

4
Comments
2 min read
Find Positive Integer Solution for a Given Equation

Find Positive Integer Solution for a Given Equation

4
Comments
2 min read
Check if Numbers Are Ascending in a Sentence

Check if Numbers Are Ascending in a Sentence

4
Comments
2 min read
H-Index

H-Index

4
Comments
1 min read
Smallest String Starting From Leaf

Smallest String Starting From Leaf

4
Comments
2 min read
Find a Corresponding Node of a Binary Tree in a Clone of That Tree

Find a Corresponding Node of a Binary Tree in a Clone of That Tree

4
Comments
2 min read
Data Stream as Disjoint Intervals

Data Stream as Disjoint Intervals

4
Comments
2 min read
Longest Substring with At Least K Repeating Characters

Longest Substring with At Least K Repeating Characters

4
Comments
1 min read
Delete Characters to Make Fancy String

Delete Characters to Make Fancy String

4
Comments
1 min read
Maximum Trailing Zeros in a Cornered Path

Maximum Trailing Zeros in a Cornered Path

4
Comments
2 min read
Count All Valid Pickup and Delivery Options

Count All Valid Pickup and Delivery Options

4
Comments
1 min read
Minimum Distance to the Target Element

Minimum Distance to the Target Element

4
Comments
1 min read
Find the Kth Largest Integer in the Array

Find the Kth Largest Integer in the Array

4
Comments
1 min read
Delete the Middle Node of a Linked List

Delete the Middle Node of a Linked List

4
Comments
2 min read
Min Max Game

Min Max Game

4
Comments
2 min read
Range Sum Query 2D - Immutable

Range Sum Query 2D - Immutable

4
Comments
2 min read
Insert into a Binary Search Tree

Insert into a Binary Search Tree

4
Comments
1 min read
N-Queens II

N-Queens II

4
Comments
1 min read
Path Crossing

Path Crossing

4
Comments
1 min read
Beautiful Array

Beautiful Array

3
Comments
1 min read
Minimum Bit Flips to Convert Number

Minimum Bit Flips to Convert Number

5
Comments
2 min read
Complex Number Multiplication

Complex Number Multiplication

Comments
1 min read
Binary Tree Postorder Traversal

Binary Tree Postorder Traversal

3
Comments
1 min read
Remove Nth Node From End of List

Remove Nth Node From End of List

3
Comments
1 min read
Minimum Absolute Difference in BST

Minimum Absolute Difference in BST

3
Comments
1 min read
Lexicographical Numbers

Lexicographical Numbers

3
Comments
1 min read
Open the Lock

Open the Lock

3
Comments
2 min read
Sum of Unique Elements

Sum of Unique Elements

3
Comments
1 min read
Delete Leaves With a Given Value

Delete Leaves With a Given Value

3
Comments
2 min read
Break a Palindrome

Break a Palindrome

3
Comments
1 min read
Remove Duplicate Letters

Remove Duplicate Letters

3
Comments
1 min read
Can Make Arithmetic Progression From Sequence

Can Make Arithmetic Progression From Sequence

3
Comments
1 min read
Distribute Candies

Distribute Candies

3
Comments
1 min read
01 Matrix

01 Matrix

3
Comments
2 min read
Reverse Words in a String

Reverse Words in a String

3
Comments
1 min read
Snapshot Array

Snapshot Array

3
Comments
2 min read
Word Ladder

Word Ladder

3
Comments
2 min read
Minimize Hamming Distance After Swap Operations

Minimize Hamming Distance After Swap Operations

3
Comments
2 min read
Wildcard Matching

Wildcard Matching

3
Comments
1 min read
N-Repeated Element in Size 2N Array

N-Repeated Element in Size 2N Array

3
Comments
1 min read
Rotate String

Rotate String

3
Comments
1 min read
Second Minimum Node In a Binary Tree

Second Minimum Node In a Binary Tree

3
Comments
2 min read
Three Divisors

Three Divisors

3
Comments
1 min read
Maximum Product of the Length of Two Palindromic Subsequences

Maximum Product of the Length of Two Palindromic Subsequences

3
Comments
2 min read
Last Stone Weight

Last Stone Weight

3
Comments
1 min read
Smallest Range II

Smallest Range II

3
Comments
1 min read
Super Pow

Super Pow

3
Comments 1
1 min read
Populating Next Right Pointers in Each Node II

Populating Next Right Pointers in Each Node II

3
Comments
1 min read
Spiral Matrix

Spiral Matrix

3
Comments
1 min read
Arithmetic Subarrays

Arithmetic Subarrays

3
Comments
2 min read
Convert Sorted List to Binary Search Tree

Convert Sorted List to Binary Search Tree

3
Comments
1 min read
Longest Palindromic Subsequence

Longest Palindromic Subsequence

3
Comments
1 min read
Sorting the Sentence

Sorting the Sentence

3
Comments
1 min read
Kth Smallest Element in a BST

Kth Smallest Element in a BST

3
Comments
1 min read
Find Median from Data Stream

Find Median from Data Stream

3
Comments
2 min read
Palindrome Partitioning

Palindrome Partitioning

3
Comments
1 min read
3Sum With Multiplicity

3Sum With Multiplicity

3
Comments
1 min read
Decode Ways

Decode Ways

3
Comments
2 min read
Power of Two

Power of Two

3
Comments
1 min read
Add Two Numbers II

Add Two Numbers II

3
Comments
2 min read
Build Array from Permutation

Build Array from Permutation

3
Comments
1 min read
Find Pivot Index

Find Pivot Index

3
Comments
2 min read
Minimum White Tiles After Covering With Carpets

Minimum White Tiles After Covering With Carpets

3
Comments
2 min read
Custom Sort String

Custom Sort String

3
Comments
1 min read
Divisor Game

Divisor Game

3
Comments
1 min read
Path Sum II

Path Sum II

3
Comments
2 min read
Convert Integer to the Sum of Two No-Zero Integers

Convert Integer to the Sum of Two No-Zero Integers

3
Comments
1 min read
Integer Replacement

Integer Replacement

3
Comments
1 min read
Search Insert Position

Search Insert Position

3
Comments
1 min read
XOR Operation in an Array

XOR Operation in an Array

3
Comments
1 min read
Match Substring After Replacement

Match Substring After Replacement

3
Comments
2 min read
Find the K-Beauty of a Number

Find the K-Beauty of a Number

3
Comments
1 min read
Range Sum of BST

Range Sum of BST

3
Comments
1 min read
Smallest Range I

Smallest Range I

3
Comments
1 min read
Count Negative Numbers in a Sorted Matrix

Count Negative Numbers in a Sorted Matrix

3
Comments
1 min read
Find Duplicate Subtrees

Find Duplicate Subtrees

3
Comments
1 min read
Valid Anagram

Valid Anagram

4
Comments
1 min read
Number of Good Pairs

Number of Good Pairs

3
Comments
1 min read
Flatten Nested List Iterator

Flatten Nested List Iterator

3
Comments
2 min read
Rotate List

Rotate List

Comments
1 min read
Remove Duplicates from Sorted Array II

Remove Duplicates from Sorted Array II

3
Comments
2 min read
Majority Element II

Majority Element II

4
Comments
1 min read
Minimum Rounds to Complete All Tasks

Minimum Rounds to Complete All Tasks

3
Comments
1 min read
Queens That Can Attack the King

Queens That Can Attack the King

3
Comments
2 min read
Product of Array Except Self

Product of Array Except Self

3
Comments
1 min read
Find All Possible Recipes from Given Supplies

Find All Possible Recipes from Given Supplies

3
Comments
2 min read
Search Suggestions System

Search Suggestions System

3
Comments
2 min read
Minimum Consecutive Cards to Pick Up

Minimum Consecutive Cards to Pick Up

3
Comments
1 min read
Range Sum Query - Immutable

Range Sum Query - Immutable

3
Comments
1 min read
Minimum Domino Rotations For Equal Row

Minimum Domino Rotations For Equal Row

3
Comments
2 min read
Long Pressed Name

Long Pressed Name

3
Comments
1 min read
Sort Array By Parity II

Sort Array By Parity II

3
Comments
1 min read
Shuffle String

Shuffle String

4
Comments
1 min read
Matrix Cells in Distance Order

Matrix Cells in Distance Order

3
Comments
1 min read
Prime Arrangements

Prime Arrangements

3
Comments
1 min read
Check if All Characters Have Equal Number of Occurrences

Check if All Characters Have Equal Number of Occurrences

3
Comments
1 min read
Find Subsequence of Length K With the Largest Sum

Find Subsequence of Length K With the Largest Sum

3
Comments
1 min read
Check Whether Two Strings are Almost Equivalent

Check Whether Two Strings are Almost Equivalent

3
Comments
2 min read
Asteroid Collision

Asteroid Collision

3
Comments
1 min read
Remove Palindromic Subsequences

Remove Palindromic Subsequences

3
Comments
1 min read
Crawler Log Folder

Crawler Log Folder

3
Comments
1 min read
Smallest String With Swaps

Smallest String With Swaps

4
Comments
2 min read
Balance a Binary Search Tree

Balance a Binary Search Tree

5
Comments
1 min read
Maximum Erasure Value

Maximum Erasure Value

3
Comments
1 min read
Backspace String Compare

Backspace String Compare

3
Comments
1 min read
Average Salary Excluding the Minimum and Maximum Salary

Average Salary Excluding the Minimum and Maximum Salary

3
Comments
1 min read
Valid Palindrome

Valid Palindrome

3
Comments
1 min read
Serialize and Deserialize BST

Serialize and Deserialize BST

4
Comments
2 min read