Leetcode 1030. Matrix Cells in Distance Order
Return all coordinates of an rows x cols grid sorted by increasing Manhattan distance from a given center cell — i.e., order every cell by |r - rCenter| + |c - cCenter| (with rows, cols ≤ 100).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.