Posted on March 19, 2021March 19, 2021 Description Submission class Solution { public: int xorOperation(int n, int start) { int ret = 0; for(int i = 0; i < n; ++i) { ret ^= (start + 2 * i); } return ret; } }; By Bill0412 Easy LeetCode