Bloomberg

1173 LeetCode interview questions

Difficulty Distribution

Easy
391
33%
Medium
625
53%
Hard
157
13%

Top Topics

All Questions

TitleDifficulty
Two SumEasy
Add Two NumbersMedium
Longest Substring Without Repeating CharactersMedium
Valid ParenthesesEasy
Merge IntervalsMedium
Best Time to Buy and Sell StockEasy
Number of IslandsMedium
Insert Delete GetRandom O(1)Medium
Median of Two Sorted ArraysHard
Longest Palindromic SubstringMedium
Reverse IntegerMedium
Palindrome NumberEasy
Container With Most WaterMedium
Roman to IntegerEasy
Longest Common PrefixEasy
3SumMedium
Merge Two Sorted ListsEasy
Remove Duplicates from Sorted ArrayEasy
Next PermutationMedium
Search in Rotated Sorted ArrayMedium
Trapping Rain WaterHard
Maximum SubarrayMedium
SubsetsMedium
Word SearchMedium
Merge Sorted ArrayEasy
Longest Consecutive SequenceMedium
LRU CacheMedium
Min StackMedium
Majority ElementEasy
Valid AnagramEasy
Decode StringMedium
Subarray Sum Equals KMedium
Flatten a Multilevel Doubly Linked ListMedium
Invalid TransactionsMedium
Design Underground SystemMedium
String to Integer (atoi)Medium
4SumMedium
Generate ParenthesesMedium
Merge k Sorted ListsHard
Remove ElementEasy
Find the Index of the First Occurrence in a StringEasy
Find First and Last Position of Element in Sorted ArrayMedium
Search Insert PositionEasy
Rotate ImageMedium
Group AnagramsMedium
Pow(x, n)Medium
Spiral MatrixMedium
Jump GameMedium
Unique PathsMedium
Plus OneEasy
Sqrt(x)Easy
Climbing StairsEasy
Sort ColorsMedium
Validate Binary Search TreeMedium
Binary Tree Level Order TraversalMedium
Pascal's TriangleEasy
Best Time to Buy and Sell Stock IIMedium
Valid PalindromeEasy
Palindrome PartitioningMedium
Single NumberEasy
Word BreakMedium
Word Break IIHard
Find Peak ElementMedium
Rotate ArrayMedium
Reverse Linked ListEasy
Kth Largest Element in an ArrayMedium
Contains DuplicateEasy
Product of Array Except SelfMedium
Meeting Rooms IIMedium
Move ZeroesEasy
Binary Tree Vertical Order TraversalMedium
Coin ChangeMedium
First Unique Character in a StringEasy
Evaluate DivisionMedium
Longest Repeating Character ReplacementMedium
Max Consecutive OnesEasy
Single Element in a Sorted ArrayMedium
Managers with at Least 5 Direct ReportsMedium
All Paths From Source to TargetMedium
Koko Eating BananasMedium
Two City SchedulingMedium
Number of Ships in a RectangleHard
Remove All Adjacent Duplicates in String IIMedium
Minimum Remove to Make Valid ParenthesesMedium
Sort Integers by The Power ValueMedium
Design an Ordered StreamEasy
Recyclable and Low Fat ProductsEasy
Remove Letter To Equalize FrequencyEasy
Create Hello World FunctionEasy
Zigzag ConversionMedium
Regular Expression MatchingHard
Integer to RomanMedium
3Sum ClosestMedium
Letter Combinations of a Phone NumberMedium
Remove Nth Node From End of ListMedium
Swap Nodes in PairsMedium
Reverse Nodes in k-GroupHard
Divide Two IntegersMedium
Valid SudokuMedium
Sudoku SolverHard
Combination SumMedium
First Missing PositiveHard
Wildcard MatchingHard
Jump Game IIMedium
PermutationsMedium
N-QueensHard
Length of Last WordEasy
Rotate ListMedium
Unique Paths IIMedium
Add BinaryEasy
Edit DistanceMedium
Set Matrix ZeroesMedium
Search a 2D MatrixMedium
Search in Rotated Sorted Array IIMedium
Remove Duplicates from Sorted ListEasy
Largest Rectangle in HistogramHard
Subsets IIMedium
Same TreeEasy
Symmetric TreeEasy
Binary Tree Zigzag Level Order TraversalMedium
Maximum Depth of Binary TreeEasy
Construct Binary Tree from Preorder and Inorder TraversalMedium
Balanced Binary TreeEasy
Populating Next Right Pointers in Each NodeMedium
Populating Next Right Pointers in Each Node IIMedium
TriangleMedium
Word LadderHard
Gas StationMedium
CandyHard
Copy List with Random PointerMedium
Linked List CycleEasy
Reorder ListMedium
Reverse Words in a StringMedium
Maximum Product SubarrayMedium
Intersection of Two Linked ListsEasy
Two Sum II - Input Array Is SortedMedium
Factorial Trailing ZeroesMedium
Combine Two TablesEasy
Largest NumberMedium
Rising TemperatureEasy
House RobberMedium
Happy NumberEasy
Isomorphic StringsEasy
Course ScheduleMedium
Implement Trie (Prefix Tree)Medium
Minimum Size Subarray SumMedium
Contains Duplicate IIEasy
Kth Smallest Element in a BSTMedium
Palindrome Linked ListEasy
Lowest Common Ancestor of a Binary Search TreeMedium
Lowest Common Ancestor of a Binary TreeMedium
Delete Node in a Linked ListMedium
Sliding Window MaximumHard
Missing NumberEasy
H-IndexMedium
Find the Duplicate NumberMedium
Serialize and Deserialize Binary TreeHard
Longest Increasing SubsequenceMedium
Odd Even Linked ListMedium
Increasing Triplet SubsequenceMedium
Reverse StringEasy
Reverse Vowels of a StringEasy
Top K Frequent ElementsMedium
Intersection of Two ArraysEasy
Lexicographical NumbersMedium
Remove K DigitsMedium
Split Array Largest SumHard
Partition Equal Subset SumMedium
String CompressionMedium
Add Two Numbers IIMedium
Next Greater Element IEasy
Next Greater Element IIMedium
Diameter of Binary TreeEasy
Number of ProvincesMedium
Valid Triangle NumberMedium
Top K Frequent WordsMedium
Daily TemperaturesMedium
Binary SearchEasy
Rotate StringEasy
Peak Index in a Mountain ArrayMedium
Middle of the Linked ListEasy
Online Stock SpanMedium
Sort an ArrayMedium
Number of Recent CallsEasy
Fibonacci NumberEasy
Vertical Order Traversal of a Binary TreeHard
Rotting OrangesMedium
Max Consecutive Ones IIIMedium
Capacity To Ship Packages Within D DaysMedium
Design A LeaderboardMedium
Monthly Transactions IMedium
Minimum Number of Steps to Make Two Strings AnagramMedium
Design Browser HistoryMedium
Minimum Number of Days to Make m BouquetsMedium
Count Unhappy FriendsMedium
Maximum Nesting Depth of the ParenthesesEasy
Average Time of Process per MachineEasy
Check if Array Is Sorted and RotatedEasy
Merge Strings AlternatelyEasy
Find the Winner of the Circular GameMedium
Frequency of the Most Frequent ElementMedium
Second Highest SalaryMedium
Find Missing and Repeated ValuesEasy
Longest Valid ParenthesesHard
Count and SayMedium
Combination Sum IIMedium
Multiply StringsMedium
Permutations IIMedium
Insert IntervalMedium
Minimum Path SumMedium
Simplify PathMedium
Minimum Window SubstringHard
Remove Duplicates from Sorted Array IIMedium
Remove Duplicates from Sorted List IIMedium
Maximal RectangleHard
Partition ListMedium
Reverse Linked List IIMedium
Binary Tree Inorder TraversalEasy
Minimum Depth of Binary TreeEasy
Path Sum IIMedium
Binary Tree Maximum Path SumHard
Word Ladder IIHard
Surrounded RegionsMedium
Single Number IIMedium
Linked List Cycle IIMedium
Sort ListMedium
Evaluate Reverse Polish NotationMedium
Find Minimum in Rotated Sorted ArrayMedium
Read N Characters Given read4 II - Call Multiple TimesHard
Consecutive NumbersMedium
Employees Earning More Than Their ManagersEasy
Customers Who Never OrderEasy
Repeated DNA SequencesMedium
Binary Tree Right Side ViewMedium
Remove Linked List ElementsEasy
Count PrimesMedium
Course Schedule IIMedium
House Robber IIMedium
Basic CalculatorHard
Implement Stack using QueuesEasy
Invert Binary TreeEasy
Basic Calculator IIMedium
Majority Element IIMedium
Power of TwoEasy
Implement Queue using StacksEasy
Search a 2D Matrix IIMedium
Different Ways to Add ParenthesesMedium
Add DigitsEasy
Single Number IIIMedium
Palindrome PermutationEasy
Perfect SquaresMedium
Find Median from Data StreamHard
Range Sum Query - ImmutableEasy
Sparse Matrix MultiplicationMedium
Remove Duplicate LettersMedium
Intersection of Two Arrays IIEasy
Design Hit CounterMedium
Sum of Two IntegersMedium
Ransom NoteEasy
Find the DifferenceEasy
Is SubsequenceEasy
Longest PalindromeEasy
Fizz BuzzEasy
Non-overlapping IntervalsMedium
Arranging CoinsEasy
Sort Characters By FrequencyMedium
Assign CookiesEasy
Reverse PairsHard
Target SumMedium
Contiguous ArrayMedium
Reverse String IIEasy
Shortest Path to Get FoodMedium
Next Greater Element IIIMedium
Permutation in StringMedium
Employee BonusEasy
Kill ProcessMedium
Big CountriesEasy
Can Place FlowersEasy
Not Boring MoviesEasy
Exchange SeatsMedium
Sum of Square NumbersMedium
Maximum Average Subarray IEasy
Palindromic SubstringsMedium
Find K Closest ElementsMedium
Trim a Binary Search TreeMedium
Implement Magic DictionaryMedium
Subarray Product Less Than KMedium
Best Time to Buy and Sell Stock with Transaction FeeMedium
Flood FillEasy
Asteroid CollisionMedium
Contain VirusHard
Find Eventual Safe StatesMedium
Lemonade ChangeEasy
Sum of Subarray MinimumsMedium
Minimum Add to Make Parentheses ValidMedium
Binary Subarrays With SumMedium
Subarray Sums Divisible by KMedium
Squares of a Sorted ArrayEasy
Cousins in Binary TreeEasy
Find Common CharactersEasy
Remove Outermost ParenthesesEasy
Greatest Common Divisor of StringsEasy
Shortest Path in Binary MatrixMedium
Find in Mountain ArrayHard
Path In Zigzag Labelled Binary TreeMedium
Longest Common SubsequenceMedium
Article Views IEasy
Minimum Absolute DifferenceEasy
Unique Number of OccurrencesEasy
Queries Quality and PercentageEasy
Maximum Profit in Job SchedulingHard
Average Selling PriceEasy
Number of Substrings Containing All Three CharactersMedium
Replace Employee ID With The Unique IdentifierEasy
Allocate MailboxesHard
Kth Missing Positive NumberEasy
Dot Product of Two Sparse VectorsMedium
Even Odd TreeMedium
Sort Array by Increasing FrequencyEasy
Truncate SentenceEasy
Maximum Number of Accepted InvitationsMedium
Check if All the Integers in a Range Are CoveredEasy
Build Array from PermutationEasy
Count Good NumbersMedium
Concatenation of ArrayEasy
Confirmation RateMedium
Partition Array Into Two Arrays to Minimize Sum DifferenceHard
Rearrange Array Elements by SignMedium
Add Two IntegersEasy
Shortest Distance to Target String in a Circular ArrayEasy
Create a DataFrame from ListEasy
Shortest PalindromeHard
Number of Digit OneHard
Flatten Binary Tree to Linked ListMedium
Product Price at a Given DateMedium
Maximum Width RampMedium
Students and ExaminationsEasy
Maximum SwapMedium
Find All Anagrams in a StringMedium
Maximum Sum of Distinct Subarrays With Length KMedium
Fruit Into BasketsMedium
Interleaving StringMedium
Diagonal TraverseMedium
Reordered Power of 2Medium
Substring with Concatenation of All WordsHard
N-Queens IIHard
Text JustificationHard
CombinationsMedium
Gray CodeMedium
Decode WaysMedium
Recover Binary Search TreeMedium
Path SumEasy
Distinct SubsequencesHard
Clone GraphMedium
Binary Tree Preorder TraversalEasy
Excel Sheet Column TitleEasy
Binary Search Tree IteratorMedium
Nth Highest SalaryMedium
Department Top Three SalariesHard
Number of 1 BitsEasy
Design Add and Search Words Data StructureMedium
Count Complete Tree NodesEasy
Summary RangesEasy
Binary Tree PathsEasy
Ugly NumberEasy
Ugly Number IIMedium
First Bad VersionEasy
Word PatternEasy
Range Sum Query 2D - MutableMedium
Burst BalloonsHard
Count of Smaller Numbers After SelfHard
Counting BitsEasy
Valid Perfect SquareEasy
Largest Divisible SubsetMedium
Guess Number Higher or LowerEasy
Third Maximum NumberEasy
All O`one Data StructureHard
Minimum Genetic MutationMedium
Find All Duplicates in an ArrayMedium
Find All Numbers Disappeared in an ArrayEasy
Delete Node in a BSTMedium
Minimum Number of Arrows to Burst BalloonsMedium
132 PatternMedium
Repeated Substring PatternEasy
Island PerimeterEasy
IPOHard
Relative RanksEasy
Find Bottom Left Tree ValueMedium
Find Largest Value in Each Tree RowMedium
Coin Change IIMedium
Continuous Subarray SumMedium
Minimum Time DifferenceMedium
01 MatrixMedium
Brick WallMedium
Array PartitionEasy
Find Customer RefereeEasy
Triangle JudgementEasy
Task SchedulerMedium
Maximum Product of Three NumbersEasy
Design Search Autocomplete SystemHard
Set MismatchEasy
Maximum Width of Binary TreeMedium
Valid Parenthesis StringMedium
Valid Palindrome IIEasy
Redundant ConnectionMedium
Max Area of IslandMedium
Accounts MergeMedium
Candy CrushMedium
Find Pivot IndexEasy
Find Smallest Letter Greater Than TargetEasy
Min Cost Climbing StairsEasy
Partition LabelsMedium
Reorganize StringMedium
Making A Large IslandHard
Hand of StraightsMedium
Car FleetMedium
Transpose MatrixEasy
Boats to Save PeopleMedium
Spiral Matrix IIIMedium
Sort Array By ParityEasy
Snakes and LaddersMedium
Knight DialerMedium
Reveal Cards In Increasing OrderMedium
Construct Binary Search Tree from Preorder TraversalMedium
Remove All Adjacent Duplicates In StringEasy
Project Employees IEasy
Defanging an IP AddressEasy
Relative Sort ArrayEasy
Balance a Binary Search TreeMedium
Immediate Food Delivery IIMedium
Reverse Substrings Between Each Pair of ParenthesesMedium
Critical Connections in a NetworkHard
Last Person to Fit in the BusMedium
Count Number of Nice SubarraysMedium
Find the Smallest Divisor Given a ThresholdMedium
Check If N and Its Double ExistEasy
Count Negative Numbers in a Sorted MatrixEasy
Kids With the Greatest Number of CandiesEasy
Shuffle the ArrayEasy
Running Sum of 1d ArrayEasy
Number of Subsequences That Satisfy the Given Sum ConditionMedium
Number of Good PairsEasy
Find Users With Valid E-MailsEasy
Customer Who Visited but Did Not Make Any TransactionsEasy
Special Array With X Elements Greater Than or Equal XEasy
Minimum Deletions to Make String BalancedMedium
Max Number of K-Sum PairsMedium
Number of Students Unable to Eat LunchEasy
Maximum Score From Removing SubstringsMedium
Find the Highest AltitudeEasy
The Number of Employees Which Report to Each EmployeeEasy
Check if the Sentence Is PangramEasy
Largest Odd Number in StringEasy
Find a Peak Element IIMedium
Find if Path Exists in GraphEasy
House Robber IVMedium
CounterEasy
Find the Maximum Achievable NumberEasy
To Be Or Not To BeEasy
Score of a StringEasy
Find N Unique Integers Sum up to ZeroEasy
Final Value of Variable After Performing OperationsEasy
Employees Whose Manager Left the CompanyEasy
Monotonic ArrayEasy
Guess the WordHard
Find K-th Smallest Pair DistanceHard
Remove All Occurrences of a SubstringMedium
Movie RatingMedium
Array Prototype LastEasy
Most Stones Removed with Same Row or ColumnMedium
Sum of Subarray RangesMedium
Game Play Analysis IVMedium
Add to Array-Form of IntegerEasy
Product Sales Analysis IIIMedium
Meeting RoomsEasy
Customers Who Bought All ProductsMedium
Smallest Range Covering Elements from K ListsHard
How Many Numbers Are Smaller Than the Current NumberEasy
Trapping Rain Water IIHard
Invalid TweetsEasy
Find Closest Number to ZeroEasy
Find the Power of K-Size Subarrays IMedium
Longest Subarray With Maximum Bitwise ANDMedium
Longest Harmonious SubsequenceEasy
Rank Transform of an ArrayEasy
Count Servers that CommunicateMedium
Minimum Number of Swaps to Make the String BalancedMedium
Maximum Points You Can Obtain from CardsMedium
Longest Happy StringMedium
Couples Holding HandsHard
Insert Delete GetRandom O(1) - Duplicates allowedHard
Friend Requests II: Who Has the Most FriendsMedium
Combination Sum IIIMedium
Reverse BitsEasy
Minimum Array EndMedium
Add StringsEasy
Count the Number of Fair PairsMedium
Shortest Subarray to be Removed to Make Array SortedMedium
Delete Duplicate EmailsEasy
Minimum Limit of Balls in a BagMedium
Maximum Subarray Sum With Length Divisible by KMedium
Make Array Elements Equal to ZeroEasy
Defuse the BombEasy
Max Chunks To Make SortedMedium
Two Sum IV - Input is a BSTEasy
Check if All Characters Have Equal Number of OccurrencesEasy
Best Sightseeing PairMedium
Count the Number of Arrays with K Matching Adjacent ElementsHard
Subarrays with K Different IntegersHard
Unique Length-3 Palindromic SubsequencesMedium
Primary Department for Each EmployeeEasy
Minimum Number of Operations to Move All Balls to Each BoxMedium
Power of ThreeEasy
Find Numbers with Even Number of DigitsEasy
HeatersMedium
Serialize and Deserialize N-ary TreeHard
Longest Strictly Increasing or Strictly Decreasing SubarrayEasy
Tuple with Same ProductMedium
Clear DigitsEasy
Next Greater Node In Linked ListMedium
Max Sum of a Pair With Equal Sum of DigitsMedium
Find the Punishment Number of an IntegerMedium
Letter Tile PossibilitiesMedium
Sum of Beauty of All SubstringsMedium
Restaurant GrowthMedium
Partition Array According to Given PivotMedium
Backspace String CompareEasy
Maximum Candies Allocated to K ChildrenMedium
Longest Nice SubarrayMedium
Permutation SequenceHard
User Activity for the Past 30 Days IEasy
Minimum Number of Refueling StopsHard
Count Symmetric IntegersEasy
All Nodes Distance K in Binary TreeMedium
Rabbits in ForestMedium
Count the Hidden SequencesMedium
Find the K-th Character in String Game IEasy
Push DominoesMedium
Finding 3-Digit Even NumbersEasy
Longest Palindromic SubsequenceMedium
Type of TriangleEasy
Zero Array Transformation IMedium
Kth Smallest Product of Two Sorted ArraysHard
Number of Matching SubsequencesMedium
Longest Binary Subsequence Less Than or Equal to KMedium
Jewels and StonesEasy
Rank ScoresMedium
Maximum Number of Events That Can Be AttendedMedium
Valid WordEasy
Find Winner on a Tic Tac Toe GameEasy
Bitwise ORs of SubarraysMedium
Ways to Express an Integer as Sum of PowersMedium
Largest 3-Same-Digit Number in StringEasy
Count Submatrices With All OnesMedium
Find the Minimum Area to Cover All Ones IMedium
Perfect NumberEasy
Largest Triangle AreaEasy
Next Greater Numerically Balanced NumberMedium
Longest Balanced Subarray IMedium
Bus RoutesHard
Spiral Matrix IIMedium
Unique Binary Search Trees IIMedium
Unique Binary Search TreesMedium
Construct Binary Tree from Inorder and Postorder TraversalMedium
Convert Sorted Array to Binary Search TreeEasy
Convert Sorted List to Binary Search TreeMedium
Pascal's Triangle IIEasy
Best Time to Buy and Sell Stock IIIHard
Sum Root to Leaf NumbersMedium
Palindrome Partitioning IIHard
Binary Tree Postorder TraversalEasy
Max Points on a LineHard
Maximum GapMedium
Compare Version NumbersMedium
Word Search IIHard
Integer to English WordsHard
Range Sum Query 2D - ImmutableMedium
Range Sum Query - MutableMedium
Bulb SwitcherMedium
Reconstruct ItineraryHard
Integer BreakMedium
Russian Doll EnvelopesHard
Design TwitterMedium
Logger Rate LimiterEasy
Kth Smallest Element in a Sorted MatrixMedium
Elimination GameMedium
Sum of Left LeavesEasy
Convert a Number to HexadecimalEasy
Find Right IntervalMedium
Path Sum IIIMedium
LFU CacheHard
Predict the WinnerMedium
Find Mode in Binary Search TreeEasy
Reverse Words in a String IIIEasy
Out of Boundary PathsMedium
Sales PersonEasy
Replace WordsMedium
2 Keys KeyboardMedium
Find Duplicate SubtreesMedium
Maximum Length of Repeated SubarrayMedium
Delete and EarnMedium
Network Delay TimeMedium
Search in a Binary Search TreeEasy
Kth Largest Element in a StreamEasy
K-th Symbol in GrammarMedium
Is Graph Bipartite?Medium
K-th Smallest Prime FractionMedium
Cheapest Flights Within K StopsMedium
Custom Sort StringMedium
Design HashSetEasy
Unique Morse Code WordsEasy
Design Circular QueueMedium
Score of ParenthesesMedium
Score After Flipping MatrixMedium
Stone GameMedium
Fair Candy SwapEasy
All Possible Full Binary TreesMedium
Minimum Falling Path SumMedium
Minimum Increment to Make Array UniqueMedium
Distribute Coins in Binary TreeMedium
Unique Paths IIIHard
Time Based Key-Value StoreMedium
Interval List IntersectionsMedium
Minimum Number of K Consecutive Bit FlipsHard
Find the Town JudgeEasy
Complement of Base 10 IntegerEasy
Number of EnclavesMedium
Longest Arithmetic SubsequenceMedium
Flower Planting With No AdjacentMedium
Partition Array for Maximum SumMedium
Longest Duplicate SubstringHard
Longest String ChainMedium
Duplicate ZerosEasy
Game Play Analysis IEasy
Minimum Falling Path Sum IIHard
Minimum Cost Tree From Leaf ValuesMedium
N-th Tribonacci NumberEasy
Stone Game IIMedium
Three Consecutive OddsEasy
Find Resultant Array After Removing AnagramsEasy
Check If It Is a Good ArrayHard
Number of Closed IslandsMedium
Group the People Given the Group Size They Belong ToMedium
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium
Average Salary Excluding the Minimum and Maximum SalaryEasy
The kth Factor of nMedium
Water BottlesEasy
Minimum Cost to Cut a StickHard
Patients With a ConditionEasy
Minimum Time to Make Rope ColorfulMedium
Percentage of Users Attended a ContestEasy
Richest Customer WealthEasy
Sorting the SentenceEasy
Sum of All Subset XOR TotalsEasy
Maximum Alternating Subsequence SumMedium
Minimum Number of Operations to Make Array ContinuousHard
Time Needed to Buy TicketsEasy
Delete the Middle Node of a Linked ListMedium
Maximum Twin Sum of a Linked ListMedium
Minimum Consecutive Cards to Pick UpMedium
Amount of Time for Binary Tree to Be InfectedMedium
Number of Unique Subjects Taught by Each TeacherEasy
Remove Nodes From Linked ListMedium
Kth Largest Sum in a Binary TreeMedium
Left and Right Sum DifferencesEasy
Apply Transform Over Each Element in ArrayEasy
Return Length of Arguments PassedEasy
Reshape Data: PivotEasy
Find Common Elements Between Two ArraysEasy
Minimum Number of Operations to Make Array XOR Equal to KMedium
Find the Integer Added to Array IEasy
Valid SquareMedium
Find the City With the Smallest Number of Neighbors at a Threshold DistanceMedium
Count Numbers with Unique DigitsMedium
Most Frequent Subtree SumMedium
Filling Bookcase ShelvesMedium
Divisor GameEasy
Minimum Swaps to Group All 1's Together IIMedium
Fix Names in a TableEasy
Create Target Array in the Given OrderEasy
Maximum Total Damage With Spell CastingMedium
Range Sum of Sorted Subarray SumsMedium
Repeated String MatchMedium
Split Linked List in PartsMedium
Regions Cut By SlashesMedium
Minimum Number of Days to Disconnect IslandHard
Minimized Maximum of Products Distributed to Any StoreMedium
Matrix Diagonal SumEasy
Maximum Number of Points with CostMedium
Delete Operation for Two StringsMedium
Strange PrinterHard
Maximal SquareMedium
Group Sold Products By The DateEasy
Final Array State After K Multiplication Operations IEasy
Modify Graph Edge WeightsHard
Most Frequent IDsMedium
Find the Student that Will Replace the ChalkMedium
Sum of Digits of String After ConvertEasy
Walking Robot SimulationMedium
Find Missing ObservationsMedium
Linked List in Binary TreeMedium
N-ary Tree Postorder TraversalEasy
Minimum Bit Flips to Convert NumberEasy
XOR Queries of a SubarrayMedium
Find the Longest Substring Containing Vowels in Even CountsMedium
Is Object EmptyEasy
Sum of Prefix Scores of StringsHard
My Calendar IMedium
Count Pairs That Form a Complete Day IIMedium
Search Suggestions SystemMedium
Find the Lexicographically Smallest Valid SequenceMedium
Make Sum Divisible by PMedium
Nth Magical NumberHard
Sentence Similarity IIIMedium
Divide Players Into Teams of Equal SkillMedium
The Number of the Smallest Unoccupied ChairMedium
Divide Intervals Into Minimum Number of GroupsMedium
Car PoolingMedium
Sort ByEasy
Find K Pairs with Smallest SumsMedium
Number of Ways to Arrive at DestinationMedium
Design a Todo ListMedium
Create Maximum NumberHard
Find Kth Bit in Nth Binary StringMedium
Parsing A Boolean ExpressionHard
Maximum Product of Two Elements in an ArrayEasy
Split a String Into the Max Number of Unique SubstringsMedium
Moving Average from Data StreamEasy
Final Prices With a Special Discount in a ShopEasy
Find Minimum Operations to Make All Elements Divisible by ThreeEasy
Minimum Number of Removals to Make Mountain ArrayHard
Minimum Total Distance TraveledHard
Circular SentenceEasy
Minimum Index Sum of Two ListsEasy
DI String MatchEasy
Minimum Number of Changes to Make Binary String BeautifulMedium
Count Good TripletsEasy
Maximum XOR for Each QueryMedium
Find a Safe Walk Through a GridMedium
Prime Subtraction OperationMedium
Degree of an ArrayEasy
Expression Add OperatorsHard
Maximum Sum BST in Binary TreeHard
Delete Characters to Make Fancy StringEasy
Flip Columns For Maximum Number of Equal RowsMedium
Nim GameEasy
Open the LockMedium
Excel Sheet Column NumberEasy
Minimum Obstacle Removal to Reach CornerHard
Smallest Even MultipleEasy
Check If a Word Occurs As a Prefix of Any Word in a SentenceEasy
Special Array IIMedium
Number of Visible People in a QueueHard
Count Vowel Substrings of a StringEasy
Check if Array is GoodEasy
Find Score of an Array After Marking All ElementsMedium
Sliding Window MedianHard
Continuous SubarraysMedium
Maximum Average Pass RatioMedium
Minimum Array SumMedium
Min Max GameEasy
Game of LifeMedium
Count Beautiful Splits in an ArrayMedium
Product Sales Analysis IEasy
Count Number of TeamsMedium
Count Univalue SubtreesMedium
Find Longest Special Substring That Occurs Thrice IMedium
Find Center of Star GraphEasy
Maximum Sum of 3 Non-Overlapping SubarraysHard
Random Pick with WeightMedium
Filter Elements from ArrayEasy
Count Special SubsequencesMedium
Number of Ways to Split ArrayMedium
Matrix Cells in Distance OrderEasy
Minimum Cost For TicketsMedium
String Matching in an ArrayEasy
Count Prefix and Suffix Pairs IEasy
Counting Words With a Given PrefixEasy
Word SubsetsMedium
Swap Sex of EmployeesEasy
Construct K Palindrome StringsMedium
Maximum Distance in ArraysMedium
Check if a Parentheses String Can Be ValidMedium
Minimum Length of String After OperationsMedium
Find the Prefix Common Array of Two ArraysMedium
Minimize XORMedium
Maximum Score Words Formed by LettersHard
Merge Two Binary TreesEasy
First Completely Painted Row or ColumnMedium
Maximum and Minimum Sums of at Most Size K SubsequencesMedium
Shortest Path in a Grid with Obstacles EliminationHard
Grid GameMedium
Paint House IVMedium
Largest Local Values in a MatrixEasy
Convert Binary Number in a Linked List to IntegerEasy
Find Original Array From Doubled ArrayMedium
Restore IP AddressesMedium
Find the Difference of Two ArraysEasy
Shortest Path in a Hidden GridMedium
Shortest Distance from All BuildingsHard
Shortest Unsorted Continuous SubarrayMedium
Remove Zero Sum Consecutive Nodes from Linked ListMedium
Find the Number of Distinct Colors Among the BallsMedium
Sort the PeopleEasy
Construct Quad TreeMedium
Longest Nice SubstringEasy
Product of the Last K NumbersMedium
Count Pairs Whose Sum is Less than TargetEasy
Minimum Height TreesMedium
Count Salary CategoriesMedium
The k-th Lexicographical String of All Happy Strings of Length nMedium
Find Unique Binary StringMedium
Distribute CandiesEasy
Recover a Tree From Preorder TraversalHard
Construct Binary Tree from Preorder and Postorder TraversalMedium
Reach a NumberMedium
Length of Longest Fibonacci SubsequenceMedium
Decrypt String from Alphabet to Integer MappingEasy
Maximum Absolute Sum of Any SubarrayMedium
Valid NumberHard
Stone Game IIIHard
Check if Number is a Sum of Powers of ThreeMedium
Separate Black and White BallsMedium
Count Vowel Strings in RangesMedium
Count Total Number of Colored CellsMedium
Maximum Subsequence ScoreMedium
Closest Prime Numbers in RangeMedium
Walls and GatesMedium
Maximum Number of Vowels in a Substring of Given LengthMedium
Alternating Groups IIMedium
Count of Substrings Containing Every Vowel and K Consonants IIMedium
Beautiful Arrangement IIMedium
Zero Array Transformation IIMedium
Pacific Atlantic Water FlowMedium
Last Stone Weight IIMedium
Divide Array Into Equal PairsEasy
Minimum Cost to Move Chips to The Same PositionEasy
Maximum Population YearEasy
Find the Minimum and Maximum Number of Nodes Between Critical PointsMedium
Minimum Operations to Make Binary Array Elements Equal to One IMedium
Find All Possible Recipes from Given SuppliesMedium
Maximum Units on a TruckEasy
Cat and MouseHard
Shifting LettersMedium
Separate Squares IMedium
Check if Grid can be Cut into SectionsMedium
Detect CapitalEasy
Find Root of N-Ary TreeMedium
Sales Analysis IIIEasy
Grumpy Bookstore OwnerMedium
Largest Number At Least Twice of OthersEasy
Solving Questions With BrainpowerMedium
Maximum Value of an Ordered Triplet IIMedium
Lowest Common Ancestor of Deepest LeavesMedium
Minimum Number of Operations to Make Elements in Array DistinctEasy
Minimum Operations to Make Array Values Equal to KEasy
Longest Univalue PathMedium
Count Good Triplets in an ArrayHard
Count Equal and Divisible Pairs in an ArrayEasy
Adding Spaces to a StringMedium
Maximum Sum Circular SubarrayMedium
Equal Row and Column PairsMedium
Shortest String That Contains Three StringsMedium
Count Largest GroupEasy
Flipping an ImageEasy
Count of Interesting SubarraysMedium
Minimum Number GameEasy
Most Frequent Even ElementEasy
Remove Digit From Number to Maximize ResultEasy
Count Subarrays Where Max Element Appears at Least K TimesMedium
Remove Methods From ProjectMedium
Merge Two 2D Arrays by Summing ValuesEasy
Move Pieces to Obtain a StringMedium
Number of Equivalent Domino PairsEasy
Domino and Tromino TilingMedium
Find Minimum Time to Reach Last Room IMedium
Maximum Number of Tasks You Can AssignHard
Dungeon GameHard
Minimum Difference Between Highest and Lowest of K ScoresEasy
Furthest Building You Can ReachMedium
Painting a Grid With Three Different ColorsHard
Find Greatest Common Divisor of ArrayEasy
Find Building Where Alice and Bob Can MeetHard
Divisible and Non-divisible Sums DifferenceEasy
Zero Array Transformation IIIMedium
Longest Palindrome by Concatenating Two Letter WordsMedium
Insert into a Binary Search TreeMedium
Find Maximum Number of Non Intersecting SubstringsMedium
Maximum Sum of Edge Values in a GraphHard
Take Gifts From the Richest PileEasy
Count the Number of Consistent StringsEasy
My Calendar IIIHard
Minimum Moves to Clean the ClassroomMedium
Clumsy FactorialMedium
Biggest Single NumberEasy
Maximum Candies You Can Get from BoxesHard
Find the Lexicographically Largest String From the Box IMedium
Number of Sub-arrays With Odd SumMedium
Minimum Operations to Make the Array AlternatingMedium
Make The String GreatEasy
Lexicographically Minimum String After Removing StarsMedium
Shortest Subarray with Sum at Least KHard
Reverse Prefix of WordEasy
Maximum Difference Between Even and Odd Frequency IIHard
Maximum Difference Between Adjacent Elements in a Circular ArrayEasy
Find Closest Node to Given Two NodesMedium
Super PowMedium
Maximum Difference Between Increasing ElementsEasy
Max Difference You Can Get From Changing an IntegerMedium
Apply Operations to an ArrayEasy
Divide Array Into Arrays With Max DifferenceMedium
Generate Tag for Video CaptionEasy
Row With Maximum OnesEasy
Longest Happy PrefixHard
Angle Between Hands of a ClockMedium
Path With Minimum EffortMedium
Maximum Manhattan Distance After K ChangesMedium
Divide a String Into Groups of Size kEasy
Minimum Deletions to Make String K-SpecialMedium
Sum of k-Mirror NumbersHard
Insert Greatest Common Divisors in Linked ListMedium
Find All K-Distant Indices in an ArrayEasy
Scramble StringHard
Largest Number After Digit Swaps by ParityEasy
Nearest Exit from Entrance in MazeMedium
Find Subsequence of Length K With the Largest SumEasy
Sort the Jumbled NumbersMedium
K Closest Points to OriginMedium
Find the Original Typed String IEasy
Check Completeness of a Binary TreeMedium
Height CheckerEasy
Find the Middle Index in ArrayEasy
Find the Original Typed String IIHard
Find the K-th Character in String Game IIHard
Find Followers CountEasy
Special Array IEasy
Find Lucky Integer in an ArrayEasy
Taking Maximum Energy From the Mystic DungeonMedium
Investments in 2016Medium
Finding Pairs With a Certain SumMedium
Student Attendance Record IEasy
Maximum Number of Events That Can Be Attended IIHard
Sum of Absolute Differences in a Sorted ArrayMedium
Reschedule Meetings for Maximum Free Time IMedium
Reschedule Meetings for Maximum Free Time IIMedium
Partition Array Into Three Parts With Equal SumEasy
Calculator with Method ChainingEasy
The Earliest and Latest Rounds Where Players CompeteHard
Binary Tree CamerasHard
Shortest BridgeMedium
Find the Maximum Length of Valid Subsequence IIMedium
Orderly QueueHard
Longest Continuous Increasing SubsequenceEasy
Minimum Difference in Sums After Removal of ElementsHard
Calculate Amount Paid in TaxesEasy
Successful Pairs of Spells and PotionsMedium
MemoizeMedium
Maximum Erasure ValueMedium
Minimum Penalty for a ShopMedium
Check if Two Chessboard Squares Have the Same ColorEasy
Add Two PromisesEasy
Maximum Unique Subarray Sum After DeletionEasy
Market Analysis IMedium
Maximize Subarrays After Removing One Conflicting PairHard
Count Hills and Valleys in an ArrayEasy
Consecutive CharactersEasy
Count Number of Maximum Bitwise-OR SubsetsMedium
Maximum XOR of Two Numbers in an ArrayMedium
Minimum Cuts to Divide a CircleEasy
Smallest Subarrays With Maximum Bitwise ORMedium
Sum of Unique ElementsEasy
Verifying an Alien DictionaryEasy
Smallest String With SwapsMedium
Rearranging FruitsHard
Broken CalculatorMedium
The Number of Beautiful SubsetsMedium
Fruits Into Baskets IIIMedium
Find the Maximum Number of Fruits CollectedHard
Difference Between Element Sum and Digit Sum of an ArrayEasy
Patching ArrayHard
The MazeMedium
Range Product Queries of PowersMedium
Number of Distinct Substrings in a StringMedium
Construct Binary Tree from StringMedium
Shortest Distance to a CharacterEasy
Power of FourEasy
New 21 GameMedium
Robot Return to OriginEasy
Max Sum of Rectangle No Larger Than KHard
Maximum 69 NumberEasy
24 GameHard
Longest Subarray of 1's After Deleting One ElementMedium
Pass the PillowEasy
Minimum Interval to Include Each QueryHard
Trips and UsersHard
Bitwise AND of Numbers RangeMedium
Sum of Mutated Array Closest to TargetMedium
Sort Items by Groups Respecting DependenciesHard
Best Time to Buy and Sell Stock with CooldownMedium
Number of Operations to Make Network ConnectedMedium
Duplicate EmailsEasy
Total Distance TraveledEasy
Number of Steps to Reduce a Number to ZeroEasy
Letter Case PermutationMedium
Merge BSTs to Create Single BSTHard
Alice and Bob Playing Flower GameMedium
Find Words Containing CharacterEasy
Hamming DistanceEasy
Generate Binary Strings Without Adjacent ZerosMedium
Find Closest PersonEasy
Longest Uncommon Subsequence IIMedium
Minimum Operations to Make the Integer ZeroMedium
Minimum Operations to Make Array Elements ZeroHard
Choose K Elements With Maximum SumMedium
Number of People Aware of a SecretMedium
A Number After a Double ReversalEasy
Minimum Number of People to TeachMedium
Beautiful ArrangementMedium
Vowel SpellcheckerMedium
Maximum Number of Points From Grid QueriesHard
Maximum Repeating SubstringEasy
Reverse Nodes in Even Length GroupsMedium
Design Task ManagerMedium
Find the Winning Player in Coin GameEasy
Count Elements With Maximum FrequencyEasy
Lexicographically Smallest Equivalent StringMedium
Subtree of Another TreeEasy
Find Subarrays With Equal SumEasy
Fraction to Recurring DecimalMedium
Largest Perimeter TriangleEasy
Minimum Common ValueEasy
Contains Duplicate IIIHard
Maximum Palindromes After OperationsMedium
Super Egg DropHard
Binary WatchEasy
Make Two Arrays Equal by Reversing SubarraysEasy
Maximum Tastiness of Candy BasketMedium
Implement Rand10() Using Rand7()Medium
Avoid Flood in The CityMedium
Find the Minimum Amount of Time to Brew PotionsMedium
Count Number of Bad PairsMedium
Remove K-Balanced SubstringsMedium
Word FrequencyMedium
Find the Distance Value Between Two ArraysEasy
Dota2 SenateMedium
Adjacent Increasing Subarrays Detection IEasy
Maximum Number of Distinct Elements After OperationsMedium
Minimum Time Visiting All PointsEasy
K Radius Subarray AveragesMedium
Rank Teams by VotesMedium
Longest Balanced Substring IMedium
Robot Bounded In CircleMedium
Non-negative Integers without Consecutive OnesHard
Simple Bank SystemMedium
Minimum Moves to Reach Target in GridHard
Range Sum of BSTEasy
Longest Even Odd Subarray With ThresholdEasy
Largest Positive Integer That Exists With Its NegativeEasy
Maximum Frequency StackHard
Delete Nodes From Linked List Present in ArrayMedium
Generate Fibonacci SequenceEasy
Find X-Sum of All K-Long Subarrays IEasy
Last Stone WeightEasy
Find X-Sum of All K-Long Subarrays IIHard
Number of Ways to Form a Target String Given a DictionaryHard
Minimum One Bit Operations to Make Integers ZeroHard
Tiling a Rectangle with the Fewest SquaresHard
Design Tic-Tac-ToeMedium
Minimum Operations to Convert All Elements to ZeroMedium
SleepEasy
Ones and ZeroesMedium
Longest Substring with At Least K Repeating CharactersMedium
Minimum Number of Operations to Make All Array Elements Equal to 1Medium
Maximum Number of Operations to Move Ones to the EndMedium
Minimum Operations to Make Array Equal to TargetHard
Delete Duplicate Folders in SystemHard
Max Chunks To Make Sorted IIHard
Count the Number of Substrings With Dominant OnesMedium
Check If All 1's Are at Least Length K Places AwayEasy
Toeplitz MatrixEasy
Determine if Two Strings Are CloseMedium
1-bit and 2-bit CharactersEasy
Add One Row to TreeMedium
Keep Multiplying Found Values by TwoEasy
Decoded String at IndexMedium
Find Beautiful Indices in the Given Array IMedium
Smallest Integer Divisible by KMedium
Number of Distinct IslandsMedium
Jump Game VHard
Maximum Running Time of N ComputersHard
Employee Free TimeHard
Can Make Arithmetic Progression From SequenceEasy
Count Partitions with Even Sum DifferenceEasy
Closest Binary Search Tree ValueEasy
Tree NodeMedium
Student Attendance Record IIHard
The Skyline ProblemHard
Count Special TripletsMedium
Cinema Seat AllocationMedium
Put Marbles in BagsHard
Count Number of Trapezoids IMedium
Minimum Score of a Path Between Two CitiesMedium
Count Mentions Per UserMedium
Battleships in a BoardMedium
Reshape Data: MeltEasy
Number of Ways to Divide a Long CorridorHard
Design SpreadsheetMedium
Maximum Frequency of an Element After Performing Operations IIHard
Count Square Sum TriplesEasy
Minimum Moves to Balance Circular ArrayMedium
Delete Columns to Make Sorted IIMedium
Check if All A's Appears Before All B'sEasy
Map of Highest PeakMedium
Circular Array LoopMedium
Number of Good PathsHard
Apple Redistribution into BoxesEasy
Analyze Subscription ConversionMedium
Meeting Rooms IIIHard
Find Minimum Cost to Remove Array ElementsMedium
Minimum Moves to Convert StringEasy
Magic Squares In GridMedium
Mini ParserMedium
Soup ServingsMedium
Number of Ways to Paint N × 3 GridHard
Four DivisorsMedium
Numbers With Same Consecutive DifferencesMedium
Combination Sum IVMedium
Human Traffic of StadiumHard
Maximum Matrix SumMedium
Online ElectionMedium
Wiggle Sort IIMedium
Maximum Product of Splitted Binary TreeMedium
Max Dot Product of Two SubsequencesHard
Smallest Subtree with all the Deepest NodesMedium
Long Pressed NameEasy
Find the Length of the Longest Common PrefixMedium
Design Linked ListMedium
Arithmetic Slices II - SubsequenceHard
Maximum Square Area by Removing Fences From a FieldMedium
Find Missing ElementsEasy
Find the Largest Area of Square Inside Two RectanglesMedium
N-Repeated Element in Size 2N ArrayEasy
Baseball GameEasy
Total Hamming DistanceMedium
Take K of Each Character From Left and RightMedium
Number of Perfect PairsMedium
Exclusive Time of FunctionsMedium
Construct the Minimum Bitwise Array IEasy
Minimum Pair Removal to Sort Array IEasy
Root Equals Sum of ChildrenEasy
K-diff Pairs in an ArrayMedium
Subtract the Product and Sum of Digits of an IntegerEasy
Minimum Cost Path with Edge ReversalsMedium
Minimize String LengthEasy
Rectangle AreaMedium
Maximum Difference Between Node and AncestorMedium
House Robber IIIMedium
Find Words That Can Be Formed by CharactersEasy
Divide an Array Into Subarrays With Minimum Cost IEasy
Find And Replace in StringMedium
Binary GapEasy
Trionic Array IIHard
Convert 1D Array Into 2D ArrayEasy
GCD of Odd and Even SumsEasy
Self CrossingHard
Replace Non-Coprime Numbers in ArrayHard
Linked List ComponentsMedium
The Dining PhilosophersMedium
Longest Balanced Substring IIMedium
Sort Array By Parity IIEasy
Champagne TowerMedium
Max Consecutive Ones IIMedium
Count Binary SubstringsEasy

Showing 1173 of 1173 questions