Ships sit on a grid. Implement the move that resolves a guess — miss, hit, sunk, or game won — in constant time.
Ships sit on a grid. Implement the move that resolves a guess — miss, hit, sunk, or game won — in constant time.
The discussion opens with the full question.