Posted on September 21, 2020 Description Submission class Solution { public: int singleNumber(vector<int>& nums) { int res = 0; for(int num : nums) { res ^= num; } return res; } }; By Bill0412 Easy LeetCode