当前位置:网站首页>LeetCode 1720. Decoding XORed Arrays (Simple)
LeetCode 1720. Decoding XORed Arrays (Simple)
2022-08-10 05:55:00 【The study of surface letter ape】
python
class Solution:
def decode(self, encoded: List[int], first: int) -> List[int]:
arr = []
arr.append(first)
for i in range(1,len(encoded)+1):
arr.append(encoded[i-1]^first)
first = arr[i]
return arr
边栏推荐
- 探索性数据分析EDA
- 开源免费WMS仓库管理系统【推荐】
- The submenu of the el-cascader cascade selector is double-clicked to display the selected content
- MySQL中MyISAM为什么比InnoDB查询快
- Link reading good article: What is the difference between hot encrypted storage and cold encrypted storage?
- 索引笔记【】【】
- 21天挑战杯MySQL——Day06
- Index Notes【】【】
- LeetCode 2011.执行操作后的变量值(简单)
- 力扣——统计只差一个字符的子串数目
猜你喜欢
随机推荐
PyTorch之模型定义
堆的原理与实现以及排序
Mini Program Study Notes: Communication between Mini Program Components
Collection tool class
Canal reports Could not find first log file name in binary log index file
ACID四种特性
事务、存储引擎
LeetCode 292.Nim 游戏(简单)
LeetCode 94.二叉树的中序遍历(简单)
一个基于.Net Core跨平台小程序考试系统
基于 .NET Core MVC 的权限管理系统
String common methods
Content related to ZigBee network devices
ZigBee 网络设备相关内容
树结构——二叉查找树原理与实现
el-dropdown drop-down menu style modification, remove the small triangle
Database Notes Create Database, Table Backup
最新最全的数字藏品发售日历-07.26
机器学习——聚类——商场客户聚类
Chain Reading|The latest and most complete digital collection sales calendar-08.02