LeetCode:419. Battleships in a Board

今天還想再刷一道題,作算法題好像心都靜下來了!算法 Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with'.'s. You may assume the following rules:
相關文章
相關標籤/搜索