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 / 1Dmedium45 minFull Stack Developer

Approvals Ranking Budget Optimizer

Full Stack Developer signal: dynamic programming + knapsack in a approval workflow context. This is a ProdMatch-owned full stack engineer drill, framed as a May 2026 Nykaa Workflow Platform simulation, not a copied platform question.

Company context

Nykaa · Workflow Platform

Freshness

May 2026

Product surface

approval workflow

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

Question

Your Workflow Platform roadmap has candidate improvements for approval workflow. 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

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

Onboarding Ranking Budget OptimizermediumBilling Ranking Budget OptimizerhardCRM Ranking Budget Optimizerhard