Find Battleship
CodingPhone, OnsiteSoftware EngineerReported Aug, 2026
Company question banks are included with the Insider plan.
A battleship of length 3 has been placed somewhere on an n x n grid (n >= 3), either horizontally or vertically, never diagonally. Every other cell is empty. Return the three coordinates the...