Available question text
Design a `findShip` method that takes a coordinate as input and determines whether an attack results in a hit, miss, or sunk ship. The solution should track ship positions and their state to correctly identify when all cells of a ship have been hit (sunk) versus a partial hit or a miss.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
GitHub
Design a Battleship Game: Implement Hit, Miss, or Sunk Detection
Reported Nov 1, 2026 · 2 source reports
MANAGER, SENIOR
Source snapshot: Nov 12, 2026
View source