Prefix Sum Problems

Master prefix sum problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 125 problems in this category.

Total Problems: 125
Easy: 15
Medium: 82
Hard: 28
Showing 50 of 125 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
560

Subarray Sum Equals K

Medium
238

Product of Array Except Self

Medium
1046

Max Consecutive Ones III

Medium
912

Random Pick with Weight

Medium
209

Minimum Size Subarray Sum

Medium
523

Continuous Subarray Sum

Medium
525

Contiguous Array

Medium
724

Find Pivot Index

Easy
410

Split Array Largest Sum

Hard
1966

Frequency of the Most Frequent Element

Medium
2001

Jump Game VII

Medium
3265

Maximum Good Subarray Sum

Medium
1603

Running Sum of 1d Array

Easy
1538

Maximum Points You Can Obtain from Cards

Medium
1184

Car Pooling

Medium
966

Binary Subarrays With Sum

Medium
1206

Corporate Flight Bookings

Medium
2721

Sum of Distances

Medium
1016

Subarray Sums Divisible by K

Medium
2488

Divide Intervals Into Minimum Number of Groups

Medium
1240

Stone Game II

Medium
3639

Zero Array Transformation I

Medium
892

Shortest Subarray with Sum at Least K

Hard
713

Subarray Product Less Than K

Medium
2165

Plates Between Candles

Medium
2449

Maximum Number of Robots Within Budget

Hard
1776

Minimum Operations to Reduce X to Zero

Medium
303

Range Sum Query - Immutable

Easy
1859

Change Minimum Characters to Satisfy One of Three Conditions

Medium
878

Shifting Letters

Medium
1370

Count Number of Nice Subarrays

Medium
1833

Find the Highest Altitude

Easy
3031

Construct Product Matrix

Medium
1393

Maximum Value of K Coins From Piles

Hard
3653

Maximum Subarray Sum With Length Divisible by K

Medium
3644

Minimum Positive Sum Subarray

Easy
2368

Sum of Total Strength of Wizards

Hard
1872

Can You Eat Your Favorite Candy on Your Favorite Day?

Medium
1985

Maximum Subarray Min-Product

Medium
732

My Calendar III

Hard
1555

Number of Ways of Cutting a Pizza

Hard
2334

Number of Flowers in Full Bloom

Hard
1631

Number of Sub-arrays With Odd Sum

Medium
2145

Grid Game

Medium
2044

Number of Wonderful Substrings

Medium
3948

Maximum Number of Subsequences After One Inserting

Medium
1042

Minimum Cost to Merge Stones

Hard
3913

Partition Array to Minimize XOR

Medium
1145

Number of Submatrices That Sum to Target

Hard
2134

Maximize the Confusion of an Exam

Medium
Loading more problems...

Prefix Sum LeetCode Problems List

Related LeetCode Topics

Prefix Sum LeetCode Problems - Interview Coder