← Microsoft questions

Minimum steps to convert X to Y using binary matrix

Filed under Microsoft

Given an N x N binary matrix representing directed graph transitions (where `matrix[i][j] = 1` indicates a valid 1-step conversion from state `i` to state `j`), find the minimum steps required to…

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.