cannot understand question


  • 0
    A

    //Does this mean each battleship is made up of exact same length and do not overlap???//

    //Given example shows that there are 2 ships but they are not of same exact length, ship1 is 1X1 and ship2 is 3X1//


  • 0
    A

    I got it after few reads, a ship can be of any length but it can only be placed horizontally or vertically, not diagonally.
    Input can be safely assumed that ships never overlap.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.