Problem 419 · Medium
Count number of battleships (no adjacent touching).
Open the interactive visualisation