MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / doesValidArrayExist

Method doesValidArrayExist

NeighbouringBitwiseXOR.java:2–8  ·  view source on GitHub ↗
(int[] derived)

Source from the content-addressed store, hash-verified

1class Solution {
2 public boolean doesValidArrayExist(int[] derived) {
3 int res=0;
4 for(int val : derived){
5 res = res ^ val;
6 }
7 return (res == 0);
8 }
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected