思路分析 1486. 數組異或操做

問題描述 給你兩個整數,n 和 start 。web 數組 nums 定義爲:nums[i] = start + 2*i(下標從 0 開始)且 n == nums.length 。數組 請返回 nums 中全部元素按位異或(XOR)後獲得的結果。svg 原題地址 https://leetcode-cn.com/problems/xor-operation-in-an-arrayspa 分享一下個人
相關文章
相關標籤/搜索