Slide a k×k window over a grid with a stride and keep the largest value of each window — then also report the row and column each max came from. A Waymo L4 phone-screen question.
Slide a k×k window over a grid with a stride and keep the largest value of each window — then also report the row and column each max came from. A Waymo L4 phone-screen question.
The discussion opens with the full question.