问题描述
我在 pressable 中有 WebView。当我在 WebView 中执行 OnScroll 时,我希望不要取消按下。我添加了道具可取消={false}。
class Solution {
public:
bool isValidSudoku(vector<vector<char>> &board) {
for (int row = 0; row < 9; row += 3) {
for (int col = 0; col < 9; col += 3) {
for (int i = 0 + row; i < 3; i++) {
for (int j = 0 + col; j < 3; j++) {
for (int k = 0 + row + 1; k < 3; k++) {
for (int kk = 0 + col; kk < 3; k++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
for (int k = 0 + row; k < 3; k++) {
for (int kk = 0 + col + 1; kk < 3; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = i; k < 9; k++) {
for (int kk = j + 1; kk < 9; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = i + 1; k < 9; k++) {
for (int kk = j; kk < 9; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
return true;
}
};
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)