XOR Operation, when I run it the code, it works. but when I summitted is wrong
    public int xorOperation(int n, int start) {
        
        int store = 0;
        for(int i = 0; i < n; i++){
            store = start ^ (start + 2 * i );
        }
        
        return store;
    }
}
Comments (0)