Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第41题.岛屿数量,C++实现的DFS算法不完善,对于如下测试用力答案有误 #90

Open
Victory8858 opened this issue Sep 1, 2023 · 2 comments

Comments

@Victory8858
Copy link

测试用例如下:
4
4
7
0 0
1 1
1 2
2 3
0 1
3 2
3 3
预期输出:1 2 2 3 2 3 2
实际输出:1 2 2 3 2 3 3

@charon2121
Copy link
Contributor

题解中的C++实现的算法不完善,OJ后台测试数据未考虑到该情况,现在已经将该测试用例加入到后台测试数据中。

@TFTree
Copy link
Contributor

TFTree commented Sep 25, 2023

已经修正第41题.岛屿数量的C++实现 @Victory8858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants