数组异或操做,算法

给你两个整数,n 和 start 。web 数组 nums 定义为:nums[i] = start + 2*i(下标从 0 开始)且 n == nums.length 。数组 请返回 nums 中全部元素按位异或(XOR)后获得的结果。svg 来源:力扣code class Solution { public int xorOperation(int n, int start) {
相关文章
相关标签/搜索