GoogleSoftware Engineer · OnsiteCodemia practiceFewest Box Pushes for a Warehouse Robot to Reach a Target
A warehouse robot on a grid with walls '#', open cells '.', one box 'B', a target 'T', and its own start 'S' can walk freely but can only push the box by stepping into it from the opposite side. Return the minimum number of pushes needed to move the box onto the target, or -1.