← Microsoft questions

Bridge building problem across cities

Filed under Microsoft

You are given two banks of a river with pairs of cities that need to be connected by bridges. Each bridge connects city A[i] on the northern bank to city B[i] on the southern bank. No two bridges can…

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.