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 / 2Dhard70 minAI/ML Engineer

Recommend Grid Reliability DP

AI/ML Engineer signal: grid DP + path optimization in a recommendation system context. This is a ProdMatch-owned ai ml engineer drill, framed as a April 2026 Freshworks Personalization ML simulation, not a copied platform question.

Company context

Freshworks · Personalization ML

Freshness

April 2026

Product surface

recommendation system

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

Question

Model recommendation system as a grid of processing zones. Move only right or down. Return the maximum reliability path score while avoiding blocked cells.

Input

  • Grid of scores with blocked cells marked -1.

Output

  • Maximum score from top-left to bottom-right, or -1.

Constraints

  • 1 <= rows, cols <= 1000
  • Scores may be zero.
  • Start or end may be blocked.

Concepts

  • vector search
  • RAG retrieval
  • recommendation graphs
  • grid DP
  • path optimization
  • obstacle handling

[[5,1],[2,4]] -> 11

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

  • Blocked start/end must be handled before the loop.
  • Use the impossible sentinel consistently.

Next Similar Problems

Vector Grid Reliability DPhardGraphRAG Grid Reliability DPhardBatching Grid Reliability DPhard