Skip to content

Commit a5db5a2

Browse files
committed
java_version
1 parent f67bfb3 commit a5db5a2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

my-submissions/m2683 v3.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Solution {
2+
public boolean doesValidArrayExist(int[] derived) {
3+
int output = 1;
4+
for (int i : derived) {
5+
output ^= i;
6+
}
7+
return output == 1;
8+
}
9+
}

0 commit comments

Comments
 (0)