摘要: 题意 给出一个数组, 只存在一个数出现一次, 其余数均出现两次, 求出现一次的数 方法 a ^ a ^ b = b 代码 class Solution { public: int singleNumber(vector<int>& nums) { int res = nums[0], N = num 阅读全文
posted @ 2022-09-06 21:14 Figure_at_a_Window 阅读(15) 评论(0) 推荐(0)