01 Matrix
Given a binary matrix, find the shortest distance from each cell to the nearest '0' cell.
Given a binary matrix, find the shortest distance from each cell to the nearest '0' cell.
Given a 2D grid representing an image, a starting pixel's coordinates, and a new color, change the color of the starting pixel and all…
Given the root of a binary tree, invert the tree by swapping its left and right children at each node.
Return the minimum time until no fresh oranges remain, or -1 if impossible.