Update 794 solution

This commit is contained in:
halfrost
2021-12-21 21:21:21 +08:00
parent f6f2eeb119
commit 7930b8dbf7
15 changed files with 257 additions and 11 deletions

View File

@ -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
## 代码

View File

@ -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 给边界着色
## 代码