Find the hidden rooks on an n by n board using as few API calls as possible.
Unlock detailed company stats for this questionUpgrade
An n x n chessboard has n-1 rooks placed so that no two share a row or column. The board is hidden and the only API is countRook(a, b, c, d), which returns the number of rooks inside a rectangle. Find the rooks while minimizing the number of API calls.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
