摘要:
2319. 判断矩阵是否是一个 X 矩阵 题解: 模拟 class Solution { public boolean checkXMatrix(int[][] grid) { int n = grid.length; for (int i = 0; i < n; i++) { for (int j 阅读全文
摘要:
2315. 统计星号 题解: 按题意模拟 class Solution { public int countAsterisks(String s) { int n = s.length(); int res = 0; // 是否不在竖线对之间 boolean flag = true; for (in 阅读全文