1486. XOR Operation in an Array Poison 2024-06-23 Bit 1234567891011class Solution { public int xorOperation(int n, int start) { int ans = 0; for (int i = 0; i < n; i++) { ans ^= start + 2 * i; } return ans; }} Reference1486. XOR Operation in an Array