ProdMatch
CompaniesCitiesRolesSign in

Companies

  • Google
  • Microsoft
  • Meta
  • Amazon
  • Apple
  • Atlassian
  • Nvidia
  • Oracle
  • See all 51 →

Cities

  • Bengaluru jobs
  • Hyderabad jobs
  • Pune jobs
  • Gurugram jobs
  • Noida jobs
  • Delhi NCR jobs
  • Mumbai jobs
  • Chennai jobs
  • Remote-India jobs

Roles

  • QA / SDET Engineers
  • Backend Engineers
  • Frontend Engineers
  • Full-stack Engineers
  • Data Analysts
  • Data Engineers
  • ML / AI Engineers
  • DevOps / SRE Engineers
  • All roles →

ProdMatch

  • About
  • Career guides
  • Compare
  • Salaries
  • Skills
  • DSA practice
  • Privacy
  • Terms
  • Sign in

© 2026 ProdMatch.ai · Built for India · DPDP Act 2023 compliant · Job data sourced from official company career pages.

Back to DSA
Intervalshard70 minMobile Engineer

Battery Capacity Interval Planner

Mobile Engineer signal: line sweep + interval merge in a battery-aware batcher context. This is a ProdMatch-owned mobile engineer drill, framed as a April 2026 Groww Performance simulation, not a copied platform question.

Company context

Groww · Performance

Freshness

April 2026

Product surface

battery-aware batcher

ProdMatch interview simulation based on product-team patterns; not a claim of a real company question.

Question

Plan capacity for battery-aware batcher. Given reservation intervals with requested units, return the minimum capacity needed and all time ranges where capacity crosses a critical threshold.

Input

  • Intervals [start, end, units] and threshold.

Output

  • Peak capacity and merged high-pressure intervals.

Constraints

  • 1 <= intervals.length <= 200000
  • Intervals are half-open: [start, end).
  • Timestamps fit in signed 32-bit integers.

Concepts

  • offline sync
  • local cache
  • gesture streams
  • line sweep
  • interval merge
  • capacity planning

[[1,4,3],[2,5,4]], threshold=6 -> peak=7, hot=[[2,4]]

Approach

Try framing your own approach first. The 30 seconds you think before peeking is where learning happens.

Clean Solution

Reveal the approach first.

How well did you understand?

Your rating tunes when this problem shows up again.

Common Mistakes

  • Be explicit about whether touching endpoints overlap.
  • Process end events before start events for half-open intervals.

Next Similar Problems

Sync Capacity Interval PlannerhardFeed Capacity Interval PlannerhardCache Capacity Interval Plannerhard