Search
⌘K

Leetcode 1706. Where Will the Ball Fall

Simulate dropping each ball from the top of each column through an m×n grid of 1/-1 diagonal boards that steer it right/left; for each ball determine which bottom column it exits or -1 if it gets stuck by hitting a wall or encountering a V-shaped pair of opposing boards. Return an array of these results for all n balls.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.