Merge pull request #1863 from Undertone0809/patch-6

fix: 修改错别字
This commit is contained in:
程序员Carl
2023-01-23 10:46:02 +08:00
committed by GitHub

View File

@ -138,7 +138,8 @@ class Solution {
}
}
//方法1直接将结果几何转为数组
//方法1将结果集合转为数组
return resSet.stream().mapToInt(x -> x).toArray();
//方法2另外申请一个数组存放setRes中的元素,最后返回数组