distToThief with the same dimensions as grid to store the minimum Manhattan distance from each cell to the nearest thief.distToThief.low to 0 and high to the maximum value in distToThief.low to mid + 1; otherwise, update high to mid - 1.low exceeds high.mid value found during binary search.