โ† Cvent questions

Battleship sinking in a grid

Filed under Cvent

The question

Given a 26x26 grid with battleships defined by top-left and bottom-right coordinates, calculate how many ships are sunk based on a set of hit coordinates.

No write-up yet. Related questions below have one.

Related Cvent questions

Collected from public candidate posts and coding forums. Updated Nov 2026.