Qustion for the "How many different battleships..."


  • 0
    X

    The question is asking to count how many different battleships are in it, so we should also remove the repeating battleships, right?

    For example, there are two kind of battleships for the following pattern,

    X..X
    ...X
    ...X

    While there should be one kind of battleship since both are same.

    X..X
    ....
    ....

    ???


Log in to reply
 

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