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
Dynamic Programming / 1Dhard70 minBackend Engineer

Courier Ranking Budget Optimizer

Backend Engineer signal: dynamic programming + knapsack in a courier assignment context. This is a ProdMatch-owned backend engineer drill, framed as a May 2026 InMobi Dispatch Engine simulation, not a copied platform question.

Company context

InMobi · Dispatch Engine

Freshness

May 2026

Product surface

courier assignment

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

Question

Your Dispatch Engine roadmap has candidate improvements for courier assignment. Each improvement has cost, lift and risk. Maximize lift under budget while keeping total risk below a threshold.

Input

  • Items [cost, lift, risk], budget and maxRisk.

Output

  • Maximum lift achievable.

Constraints

  • 1 <= items.length <= 500
  • Budget <= 10000
  • maxRisk <= 10000

Concepts

  • idempotency
  • queues
  • rate limiting
  • dynamic programming
  • knapsack
  • ranking trade-off

items [[2,5,1],[4,9,4]], budget=4, risk=4 -> 9

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

  • Unclear state definition usually causes off-by-one bugs.
  • Do not overwrite a state before all consumers have used it.

Next Similar Problems

Idempotency Ranking Budget OptimizermediumLedger Ranking Budget OptimizerhardInventory Ranking Budget Optimizerhard