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
Graphshard70 minFull Stack Developer

Import Evidence Path Finder

Full Stack Developer signal: shortest path + weighted graph in a bulk data import context. This is a ProdMatch-owned full stack engineer drill, framed as a April 2026 ServiceNow Data Experience simulation, not a copied platform question.

Company context

ServiceNow · Data Experience

Freshness

April 2026

Product surface

bulk data import

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

Question

In bulk data import, entities are connected by weighted evidence edges. For each query, find the least-cost evidence path from source to target while avoiding blocked entities.

Input

  • Weighted graph, blocked set, and q source-target queries.

Output

  • Minimum cost per query, or -1 if unreachable.

Constraints

  • 1 <= nodes <= 100000
  • 1 <= edges <= 300000
  • 1 <= queries <= 100000
  • All weights are non-negative.

Concepts

  • workflow graphs
  • API pagination
  • cache invalidation
  • shortest path
  • weighted graph
  • retrieval quality

0-1 cost 2, 1-2 cost 3, query 0->2 -> 5

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

  • Mark visited when enqueueing, not after repeated dequeue.
  • Do not ignore disconnected components if the product surface can have them.

Next Similar Problems

Onboarding Dependency DAG RecoverymediumOnboarding Evidence Path FinderhardBilling Dependency DAG Recoveryhard