Posted on October 6, 2020October 6, 2020 Description Submission class Solution { public: int missingNumber(vector<int>& nums) { int ret = nums.size(); for(int i = 0; i < nums.size(); ++i) { ret ^= (i ^ nums[i]); } return ret; } }; By Bill0412 Easy LeetCode