PMMockr

QuestionsTechnical PMTop-Interview

01 Matrix

01 Matrix

Additional context: Given an M x N binary matrix, calculate the distance of each cell to the nearest 0. Return a new matrix where each cell contains this distance.

What this question tests

Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.

Start a timed mock interview

Related Technical PM questions

All Technical PM questions · Product manager interview questions by skill area