Skip to content

Commit

Permalink
fix: lab2
Browse files Browse the repository at this point in the history
  • Loading branch information
E1PsyCongroo committed Oct 15, 2024
1 parent eace722 commit fde7977
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
.vscode
static/
8 changes: 5 additions & 3 deletions Labs/lab2/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
- 实现一个递归函数`bool solveSudoku(int board[N][N], int row, int col)`判断数独是否可解,有解则填充正确答案。
- 题中数独采用二维数组,需解答填充的数字用0代替如:
```txt
0 6 0 0 0 0 0 7 1
7 0 5 4 0 3 0 0 0
0 0 0 6 7 0 3 0 0
Expand All @@ -106,6 +106,8 @@
6 0 1 0 2 0 0 0 3
0 7 9 0 0 0 5 0 2
0 0 0 0 0 4 7 0 0
提供了`printBoard(int board[N][N])`函数打印数独和`isSafe(int board[N][N], int row, int col, int num)`函数检查数字是否可以放在board[row][col]位置。
- 运行judge.sh检测程序正确性。
```
- 使用`printBoard(int board[N][N])`函数打印数独
- 使用`isSafe(int board[N][N], int row, int col, int num)`函数检查数字是否可以放在board[row][col]位置。
- 运行judge.sh检测程序正确性。
- 完成文件`sudoku.c`中的`solveSudoku`函数编写。
Binary file modified Notes/week2.pdf
Binary file not shown.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ NekoBytes-TheMissing
├── Others/ // 其他杂项,比如辅助阅读资源、课程示例代码
```

## 项目任务说明
对应模块的任务说明请**参考对应目录**下的 README 文档。
## 项目任务说明
对应模块的任务说明请**参考对应目录**下的 README 文档。
### Labs
Expand Down

0 comments on commit fde7977

Please sign in to comment.