Segment Tree Problems

Master segment tree problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 40 problems in this category.

Total Problems: 40
Easy: 1
Medium: 8
Hard: 31
Showing 40 of 40 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
315

Count of Smaller Numbers After Self

Hard
673

Number of Longest Increasing Subsequence

Medium
715

Range Module

Hard
2526

Longest Increasing Subsequence II

Hard
699

Falling Squares

Hard
3790

Fruits Into Baskets II

Easy
218

The Skyline Problem

Hard
2357

Count Integers in Intervals

Hard
3435

Block Placement Queries

Hard
406

Queue Reconstruction by Height

Medium
327

Count of Range Sum

Hard
3181

Find Building Where Alice and Bob Can Meet

Hard
3423

Maximum Sum of Subsequence With Non-adjacent Elements

Hard
307

Range Sum Query - Mutable

Medium
732

My Calendar III

Hard
2319

Longest Substring of One Repeating Character

Hard
3791

Fruits Into Baskets III

Medium
880

Rectangle Area II

Hard
493

Reverse Pairs

Hard
2703

Handling Sum Queries After Update

Hard
3941

Number of Integers With Popcount-Depth Equal to K II

Hard
1772

Create Sorted Array through Instructions

Hard
1728

Fancy Sequence

Hard
3139

Subarrays Distinct Element Sum of Squares II

Hard
3688

Maximize Subarray Sum After Removing All Occurrences of One Element

Hard
3920

Minimum Stability Factor of Array

Hard
1645

Find a Value of a Mysterious Function Closest to Target

Hard
2513

Number of Pairs Satisfying Inequality

Hard
2765

Make Array Empty

Hard
1511

Count Number of Teams

Medium
2280

Count Good Triplets in an Array

Hard
3840

Find X Value of Array II

Hard
1629

Minimum Possible Integer After at Most K Adjacent Swaps On Digits

Hard
3829

Shortest Path in a Weighted Tree

Hard
1294

Range Frequency Queries

Medium
3878

Maximize Count of Distinct Primes After Split

Hard
2380

Booking Concert Tickets in Groups

Hard
731

My Calendar II

Medium
3789

Maximize Subarrays After Removing One Conflicting Pair

Hard
729

My Calendar I

Medium

Segment Tree LeetCode Problems List

Related LeetCode Topics

Segment Tree LeetCode Problems - Interview Coder