We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3d2c7 commit 5113811Copy full SHA for 5113811
problems/0349.两个数组的交集.md
@@ -143,9 +143,9 @@ class Solution {
143
return resSet.stream().mapToInt(x -> x).toArray();
144
145
//方法2:另外申请一个数组存放setRes中的元素,最后返回数组
146
- int[] arr = new int[setRes.size()];
+ int[] arr = new int[resSet.size()];
147
int j = 0;
148
- for(int i : setRes){
+ for(int i : resSet){
149
arr[j++] = i;
150
}
151
0 commit comments