count_unknown_squares
Sun Oct 16 2022 21:23:28 GMT+0000 (Coordinated Universal Time)
Saved by
@zaczhuang
int count_unknown_squares(const int board[MAX_SIZE][MAX_SIZE], int size) {
// write your code here
int count = 0;
for (int i = 0; i < size; i++){
for (int j = 0; j < size; j++){
if (board[i][j] == UNKNOWN){
count ++;
}
}
}
// replace this return statement
return count;
}
content_copyCOPY
Comments