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

Experiment Ranking Budget Optimizer

Frontend Engineer signal: dynamic programming + knapsack in a A/B experiment console context. This is a ProdMatch-owned frontend engineer drill, framed as a May 2026 Freshworks Experimentation simulation, not a copied platform question.

Company context

Freshworks · Experimentation

Freshness

May 2026

Product surface

A/B experiment console

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

Question

Your Experimentation roadmap has candidate improvements for A/B experiment console. 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