Skip to main content

2 docs tagged with "Matrix"

View all tags

01 Matrix

Given a binary matrix, find the shortest distance from each cell to the nearest '0' cell.

Rotting Oranges

Return the minimum time until no fresh oranges remain, or -1 if impossible.