mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 17:44:10 +08:00
Update 794 solution
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# [794. Valid Tic-Tac-Toe State](https://leetcode-cn.com/problems/valid-tic-tac-toe-state/)
|
||||
# [794. Valid Tic-Tac-Toe State](https://leetcode.com/problems/valid-tic-tac-toe-state/)
|
||||
|
||||
## 题目
|
||||
|
||||
@ -71,7 +71,7 @@ Here are the rules of Tic-Tac-Toe:
|
||||
分类模拟:
|
||||
- 根据题意棋盘在任意时候,要么 X 的数量比 O 的数量多 1,要么两者相等
|
||||
- X 的数量等于 O 的数量时,任何行、列或对角线都不会出现 3 个相同的 X
|
||||
- X 的数量比 O 的数量多 1时,任何行、列或对角线都不会出现 3 个相同的 O
|
||||
- X 的数量比 O 的数量多 1 时,任何行、列或对角线都不会出现 3 个相同的 O
|
||||
|
||||
## 代码
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# [1034. Coloring A Border](https://leetcode-cn.com/problems/coloring-a-border/)
|
||||
# [1034. Coloring A Border](https://leetcode.com/problems/coloring-a-border/)
|
||||
|
||||
## 题目
|
||||
|
||||
@ -50,7 +50,7 @@ Return the final grid.
|
||||
|
||||
## 解题思路
|
||||
|
||||
- 用bfs进行遍历选出边界,使用color给边界着色
|
||||
- 用 bfs 进行遍历选出边界,使用 color 给边界着色
|
||||
|
||||
## 代码
|
||||
|
||||
|
Reference in New Issue
Block a user