摘要: 给你两个整数,n 和 start 。 数组 nums 定义为:nums[i] = start + 2*i(下标从 0 开始)且 n == nums.length 。 请返回 nums 中所有元素按位异或(XOR)后得到的结果。 解一:暴力法: class Solution { public: int 阅读全文
posted @ 2020-09-28 09:26 epiphanyy 阅读(39) 评论(0) 推荐(0)