Skip to content

Commit

Permalink
Time: 2 ms (100%), Space: 62.1 MB (68.82%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit-S-Sahu committed Jan 17, 2025
1 parent 6316b40 commit 9ec3287
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Solution {
public boolean doesValidArrayExist(int[] derived) {
int ans = 0;
for (int num : derived) ans^= num;

return ans == 0;
}
}

0 comments on commit 9ec3287

Please sign in to comment.