kamacoder-solutions icon indicating copy to clipboard operation
kamacoder-solutions copied to clipboard

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

Open Victory8858 opened this issue 2 years ago • 2 comments

测试用例如下: 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

Victory8858 avatar Sep 01 '23 06:09 Victory8858

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

charon2121 avatar Sep 02 '23 10:09 charon2121

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

TFTree avatar Sep 25 '23 15:09 TFTree