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
Arrays & Hashingeasy25 minAI/ML Engineer

Batching Duplicate Signal Resolver

AI/ML Engineer signal: hash map + dedupe in a model-serving batcher context. This is a ProdMatch-owned ai ml engineer drill, framed as a May 2026 Cars24 Inference Platform simulation, not a copied platform question.

Company context

Cars24 · Inference Platform

Freshness

May 2026

Product surface

model-serving batcher

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

Question

For model-serving batcher, collapse duplicate requests by external ID. Keep the newest event per ID and return IDs in first-seen order.

Input

  • Array of events {id, version}.

Output

  • Deduped IDs and their kept version.

Constraints

  • 1 <= events.length <= 200000
  • Versions are comparable integers.

Concepts

  • vector search
  • RAG retrieval
  • recommendation graphs
  • hash map
  • dedupe
  • stable ordering

[(a,1),(b,1),(a,3)] -> [(a,3),(b,1)]

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

  • Do not sort if first-seen order is required.
  • Treat duplicate IDs with equal versions deterministically.

Next Similar Problems

Vector Duplicate Signal ResolvereasyGraphRAG Duplicate Signal ResolvermediumRecommend Duplicate Signal Resolvereasy