← Microsoft questions

Path with minimum magic potions

Filed under Microsoft

Given a graph with nodes representing friends or enemies and weighted edges, find a path from a start node to an end node that minimizes the number of magic potions used to convert enemy path segments…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.