会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
SheltertY Blog
博客园
首页
新随笔
订阅
管理
2024年8月7日
leetcode 1486. 数组异或操作 https://leetcode.cn/problems/xor-operation-in-an-array/
摘要: 1486. 数组异或操作 题目描述 给你两个整数,n 和 start 。 数组 nums 定义为:nums[i] = start + 2*i(下标从 0 开始)且 n == nums.length 。 请返回 nums 中所有元素按位异或(XOR)后得到的结果。 示例 示例 1: 输入:n = 5,
阅读全文
posted @ 2024-08-07 16:54 ShelterY
阅读(58)
评论(0)
推荐(0)
公告