PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsPrefix Sum

Prefix Sum Problems

186 Prefix Sum LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

209Minimum Size Subarray SumMedium238Product of Array Except SelfMedium303Range Sum Query - ImmutableEasy304Range Sum Query 2D - ImmutableMedium363Max Sum of Rectangle No Larger Than KHard410Split Array Largest SumHard497Random Point in Non-overlapping RectanglesMedium523Continuous Subarray SumMedium525Contiguous ArrayMedium528Random Pick with WeightMedium560Subarray Sum Equals KMedium689Maximum Sum of 3 Non-Overlapping SubarraysHard713Subarray Product Less Than KMedium724Find Pivot IndexEasy731My Calendar IIMedium732My Calendar IIIHard798Smallest Rotation with Highest ScoreHard813Largest Sum of AveragesMedium848Shifting LettersMedium862Shortest Subarray with Sum at Least KHard903Valid Permutations for DI SequenceHard930Binary Subarrays With SumMedium974Subarray Sums Divisible by KMedium995Minimum Number of K Consecutive Bit FlipsHard1000Minimum Cost to Merge StonesHard1004Max Consecutive Ones IIIMedium1074Number of Submatrices That Sum to TargetHard1094Car PoolingMedium1109Corporate Flight BookingsMedium1124Longest Well-Performing IntervalMedium1140Stone Game IIMedium1177Can Make Palindrome from SubstringMedium1208Get Equal Substrings Within BudgetMedium1248Count Number of Nice SubarraysMedium1292Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMedium1310XOR Queries of a SubarrayMedium1314Matrix Block SumMedium1352Product of the Last K NumbersMedium1371Find the Longest Substring Containing Vowels in Even CountsMedium1413Minimum Value to Get Positive Step by Step SumEasy1420Build Array Where You Can Find The Maximum Exactly K ComparisonsHard1422Maximum Score After Splitting a StringEasy1423Maximum Points You Can Obtain from CardsMedium1442Count Triplets That Can Form Two Arrays of Equal XORMedium1444Number of Ways of Cutting a PizzaHard1480Running Sum of 1d ArrayEasy1508Range Sum of Sorted Subarray SumsMedium1524Number of Sub-arrays With Odd SumMedium1546Maximum Number of Non-Overlapping Subarrays With Sum Equals TargetMedium1588Sum of All Odd Length SubarraysEasy1589Maximum Sum Obtained of Any PermutationMedium1590Make Sum Divisible by PMedium1658Minimum Operations to Reduce X to ZeroMedium1664Ways to Make a Fair ArrayMedium1674Minimum Moves to Make Array ComplementaryMedium1685Sum of Absolute Differences in a Sorted ArrayMedium1687Delivering Boxes from Storage to PortsHard1703Minimum Adjacent Swaps for K Consecutive OnesHard1712Ways to Split Array Into Three SubarraysMedium1732Find the Highest AltitudeEasy1737Change Minimum Characters to Satisfy One of Three ConditionsMedium1738Find Kth Largest XOR Coordinate ValueMedium1744Can You Eat Your Favorite Candy on Your Favorite Day?Medium1769Minimum Number of Operations to Move All Balls to Each BoxMedium1829Maximum XOR for Each QueryMedium1838Frequency of the Most Frequent ElementMedium1854Maximum Population YearEasy1856Maximum Subarray Min-ProductMedium1862Sum of Floored PairsHard1871Jump Game VIIMedium1872Stone Game VIIIHard1878Get Biggest Three Rhombus Sums in a GridMedium1889Minimum Space Wasted From PackagingHard1893Check if All the Integers in a Range Are CoveredEasy1894Find the Student that Will Replace the ChalkMedium1895Largest Magic SquareMedium1915Number of Wonderful SubstringsMedium1930Unique Length-3 Palindromic SubsequencesMedium1943Describe the PaintingMedium1991Find the Middle Index in ArrayEasy2017Grid GameMedium2024Maximize the Confusion of an ExamMedium2025Maximum Number of Ways to Partition an ArrayHard2055Plates Between CandlesMedium2100Find Good Days to Rob the BankMedium2106Maximum Fruits Harvested After at Most K StepsHard2121Intervals Between Identical ElementsMedium2132Stamping the GridHard2145Count the Hidden SequencesMedium2171Removing Minimum Number of Magic BeansMedium2207Maximize Number of Subsequences in a StringMedium2209Minimum White Tiles After Covering With CarpetsHard2218Maximum Value of K Coins From PilesHard2222Number of Ways to Select BuildingsMedium2234Maximum Total Beauty of the GardensHard2245Maximum Trailing Zeros in a Cornered PathMedium2251Number of Flowers in Full BloomHard2256Minimum Average DifferenceMedium2270Number of Ways to Split ArrayMedium2271Maximum White Tiles Covered by a CarpetMedium2281Sum of Total Strength of WizardsHard2302Count Subarrays With Score Less Than KHard2381Shifting Letters IIMedium2382Maximum Segment Sum After RemovalsHard2389Longest Subsequence With Limited SumEasy2391Minimum Amount of Time to Collect GarbageMedium2398Maximum Number of Robots Within BudgetHard2406Divide Intervals Into Minimum Number of GroupsMedium2420Find All Good IndicesMedium2428Maximum Sum of an HourglassMedium2438Range Product Queries of PowersMedium2439Minimize Maximum of ArrayMedium2448Minimum Cost to Make Array EqualHard2483Minimum Penalty for a ShopMedium2485Find the Pivot IntegerEasy2488Count Subarrays With Median KHard2528Maximize the Minimum Powered CityHard2536Increment Submatrices by OneMedium2552Count Increasing QuadrupletsHard2559Count Vowel Strings in RangesMedium2574Left and Right Sum DifferencesEasy2587Rearrange Array to Maximize Prefix ScoreMedium2588Count the Number of Beautiful SubarraysMedium2602Minimum Operations to Make All Array Elements EqualMedium2615Sum of DistancesMedium2640Find the Score of All Prefixes of an ArrayMedium2680Maximum ORMedium2681Power of HeroesHard2731Movement of RobotsMedium2772Apply Operations to Make All Array Elements Equal to ZeroMedium2845Count of Interesting SubarraysMedium2848Points That Intersect With CarsEasy2875Minimum Size Subarray in Infinite ArrayMedium2906Construct Product MatrixMedium2947Count Beautiful Substrings IMedium2949Count Beautiful Substrings IIHard2968Apply Operations to Maximize Frequency ScoreHard2971Find Polygon With the Largest PerimeterMedium2983Palindrome Rearrangement QueriesHard3015Count the Number of Houses at a Certain Distance IMedium3017Count the Number of Houses at a Certain Distance IIHard3026Maximum Good Subarray SumMedium3028Ant on the BoundaryEasy3070Count Submatrices with Top-Left Element and Sum Less Than kMedium3077Maximum Strength of K Disjoint SubarraysHard3086Minimum Moves to Pick K OnesHard3096Minimum Levels to Gain More PointsMedium3129Find All Possible Stable Binary Arrays IMedium3130Find All Possible Stable Binary Arrays IIHard3147Taking Maximum Energy From the Mystic DungeonMedium3152Special Array IIMedium3179Find the N-th Value After K SecondsMedium3191Minimum Operations to Make Binary Array Elements Equal to One IMedium3212Count Submatrices With Equal Frequency of X and YMedium3224Minimum Array Changes to Make Differences EqualMedium3225Maximum Score From Grid OperationsHard3250Find the Count of Monotonic Pairs IHard3251Find the Count of Monotonic Pairs IIHard3261Count Substrings That Satisfy K-Constraint IIHard3312Sorted GCD Pair QueriesHard3333Find the Original Typed String IIHard3346Maximum Frequency of an Element After Performing Operations IMedium3347Maximum Frequency of an Element After Performing Operations IIHard3354Make Array Elements Equal to ZeroEasy3355Zero Array Transformation IMedium3356Zero Array Transformation IIMedium3361Shift Distance Between Two StringsMedium3362Zero Array Transformation IIIMedium3364Minimum Positive Sum Subarray Easy3381Maximum Subarray Sum With Length Divisible by KMedium3413Maximum Coins From K Consecutive BagsMedium3425Longest Special PathHard3427Sum of Variable Length SubarraysEasy3432Count Partitions with Even Sum DifferenceEasy3434Maximum Frequency After Subarray OperationMedium3445Maximum Difference Between Even and Odd Frequency IIHard3473Sum of K Subarrays With Length at Least MMedium3480Maximize Subarrays After Removing One Conflicting PairHard3486Longest Special Path IIHard3494Find the Minimum Amount of Time to Brew PotionsMedium3500Minimum Cost to Divide Array Into SubarraysHard3538Merge Operations for Minimum Travel TimeHard3546Equal Sum Grid Partition IMedium3548Equal Sum Grid Partition IIHard3578Count Partitions With Max-Min Difference at Most KMedium3599Partition Array to Minimize XORMedium
← Browse all LeetCode problems
PhantomCodeAIPhantomCodeAI
PhantomCodeAI is an undetectable desktop application to help you pass your Leetcode interviews.
All systems online
Download

Legal

Refund PolicyTerms of ServiceCancellation PolicyPrivacy Policy

Pages

Contact SupportHelp CenterInstant SupportFAQBlogFeaturesInterview CopilotCoding CopilotInterview QuestionsPricingMock Interview PricingEarn with UsBest AI Interview Assistants 2026FeedbackLeetcode ProblemsLoginCreate Account

Compare

All 29 comparisons →Why switch (29 alternatives) →Interview Coder AlternativeFinal Round AI AlternativeUltraCode AI AlternativeParakeet AI AlternativeAI Apply AlternativeCoderRank AlternativeInterviewing.io AlternativeShadeCoder Alternative

Resources

Salary GuideResume TemplatesWhat Is PhantomCodeAIIs PhantomCodeAI Detectable?Use PhantomCodeAI in HackerRankvs LeetCode PremiumFor European EngineersFor FAANG Interview PrepPost-Layoff ComebackIndia Pricing (INR)

Interview Types

Coding InterviewSystem Design InterviewDSA InterviewLeetCode InterviewAlgorithms InterviewData Structure InterviewSQL InterviewOnline Assessment

Interview Questions

See all →
GoogleAmazonMetaMicrosoftAppleNetflixStripeUberAirbnbBloombergSoftware EngineerFrontend EngineerBackend EngineerData EngineerML EngineerDevOps EngineerData ScientistEngineering ManagerBehavioralSystem Design

Mock Interview by Round Type

All formats →
Mock Interview HubMock Coding InterviewMock Behavioral InterviewMock System Design

AI for Industry Interviews

All industries →
Sales InterviewsPM InterviewsFinance InterviewsConsulting InterviewsDesign Interviews

Coding Interview Patterns

See all patterns →
Coding Interviews HubDynamic ProgrammingTwo Pointers + Sliding WindowGraph AlgorithmsTree AlgorithmsBinary Search

Interview Guides

See all guides →
How to Ace an InterviewHow to Crack InterviewsBest Interview AnswersScreening Interview QuestionsTelephone Interview TipsWorking Interview ExplainedCracking the PM InterviewFAANG 30-Day RoadmapTop 10 LeetCode PatternsSystem Design Prep GuideSTAR Behavioral MethodBehavioral Interview Qs

Alternatives — why engineers switch

See all 29 →
Interview CoderFinal Round AIParakeet AILockedIn AIUltraCode AIShadeCoderSensei AIVerve AICluelyChatGPTBeyz AIInterview SidekickYoodliAlgoMonsterCoderRankExponentFormationInterviewing.ioInterview CakeBig InterviewInterview KickstartPrampScalerAI ApplyCareerflowJobscanKickresumeTeal HQHireVue

AI Interview Tools

AI Interview AssistantAI Interview CoachAI for Job InterviewsAI Interview Preparation ToolReal-Time AI Interview AnswersInterview AI HelperReal-Time AI Interview AssistantAI Interview BotBest AI Interview Tools 2026AI Interview QuestionsPractice Interview QuestionsAI to Answer Interview QuestionsAI Phone Interview HelpAI Interviewing SoftwareAI Interview HubInterview CopilotAI Coding Interview AssistantMock Interview

© 2026 PhantomCodeAI. All rights reserved.