Segment Tree

53 LeetCode questions

Difficulty Distribution

Easy
1
2%
Medium
12
23%
Hard
40
75%

Top Companies

Questions

TitleDifficulty
Reverse PairsHard
Range Sum Query - MutableMedium
Create Sorted Array through InstructionsHard
The Skyline ProblemHard
Count of Smaller Numbers After SelfHard
Count of Range SumHard
Queue Reconstruction by HeightMedium
Number of Longest Increasing SubsequenceMedium
Range ModuleHard
My Calendar IMedium
My Calendar IIMedium
My Calendar IIIHard
Count Number of TeamsMedium
Subarrays Distinct Element Sum of Squares IIHard
Maximum Balanced Subsequence SumHard
Find Building Where Alice and Bob Can MeetHard
Separate Squares IIHard
Number of Pairs Satisfying InequalityHard
Maximize Subarrays After Removing One Conflicting PairHard
Fruits Into Baskets IIEasy
Fruits Into Baskets IIIMedium
Minimum Stability Factor of ArrayHard
Falling SquaresHard
Longest Balanced Subarray IMedium
Longest Balanced Subarray IIHard
Find a Value of a Mysterious Function Closest to TargetHard
Distribute Elements Into Two Arrays IIHard
Block Placement QueriesHard
Count Good Triplets in an ArrayHard
Count Integers in IntervalsHard
Number of Subarrays With AND Value of KHard
Rectangle Area IIHard
Fancy SequenceHard
Booking Concert Tickets in GroupsHard
Longest Uploaded PrefixMedium
Minimum Sum of Values by Dividing ArrayHard
Longest Increasing Subsequence IIHard
Maximum Sum of Subsequence With Non-adjacent ElementsHard
Maximum Area Rectangle With Point Constraints IMedium
Maximize Subarray Sum After Removing All Occurrences of One ElementHard
Count Non-Decreasing Subarrays After K OperationsHard
Maximum Area Rectangle With Point Constraints IIHard
Make Array EmptyHard
Shortest Path in a Weighted TreeHard
Minimum Number of Valid Strings to Form Target IMedium
Online Majority Element In SubarrayHard
Delivering Boxes from Storage to PortsHard
Longest Substring of One Repeating CharacterHard
Range Frequency QueriesMedium
Find X Value of Array IIHard
Find Subarray With Bitwise OR Closest to KHard
Peaks in ArrayHard
Handling Sum Queries After UpdateHard

Showing 53 of 53 questions