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 minFrontend Engineer

Forms Ranking Budget Optimizer

Frontend Engineer signal: dynamic programming + knapsack in a dynamic form builder context. This is a ProdMatch-owned frontend engineer drill, framed as a May 2026 SAP Labs Growth UX simulation, not a copied platform question.

Company context

SAP Labs · Growth UX

Freshness

May 2026

Product surface

dynamic form builder

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

Question

Your Growth UX roadmap has candidate improvements for dynamic form builder. 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

  • render scheduling
  • state graphs
  • virtualization
  • 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

Timeline Ranking Budget OptimizermediumAutocomplete Ranking Budget OptimizerhardCanvas Ranking Budget Optimizerhard