首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
battleships专题
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: You receive a valid
阅读更多...