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 minFull Stack Developer

Import Capacity Interval Planner

Full Stack Developer signal: line sweep + interval merge in a bulk data import context. This is a ProdMatch-owned full stack engineer drill, framed as a March 2026 Zomato Data Experience simulation, not a copied platform question.

Company context

Zomato · Data Experience

Freshness

March 2026

Product surface

bulk data import

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

Question

Plan capacity for bulk data import. 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

  • workflow graphs
  • API pagination
  • cache invalidation
  • 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

Onboarding Capacity Interval PlannerhardBilling Capacity Interval PlannerhardCRM Capacity Interval Plannerhard