← Microsoft questions

Matrix Level Order Fill

Filed under Microsoft

Fill an N x M matrix with integers from 1 to N*M. The filling order should follow a 'level order' pattern, starting from the top-left cell (0,0). Each 'level' consists of cells at the same Manhattan…

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.