当前位置:网站首页>LeetCode 1720.解码异或后的数组(简单)
LeetCode 1720.解码异或后的数组(简单)
2022-08-10 05:32:00 【生信研究猿】
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
边栏推荐
- 第六次实验
- 国内数字藏品投资价值分析
- A timeout error is reported when connecting to Nacos
- pytorch-07.处理多维特征的输入
- Copy large files with crontab
- .Net Core导入千万级数据至Mysql
- Chained Picks: Starbucks looks at digital collectibles and better engages customers
- GUI_AWT
- WeChat applet wx.writeBLECharacteristicValue Chinese character to buffer problem
- 微信小程序-小程序的宿主环境
猜你喜欢
随机推荐
菜谱小程序源码免费分享【推荐】
Reflection 【Notes】
[Difference between el and template]
Mini Program Study Notes: Communication between Mini Program Components
作业实验四
MySql constraints
The latest and most complete digital collection sales calendar-07.26
链读|最新最全的数字藏品发售日历-08.02
Database Notes Create Database, Table Backup
力扣——统计只差一个字符的子串数目
棋类游戏-五子棋小游戏
ORACLE system table space SYSTEM is full and cannot expand table space problem solving process
Multi-table query Notes
操作表 函数的使用
21天挑战杯MySQL——Day06
WeChat applet wx.writeBLECharacteristicValue Chinese character to buffer problem
Decentralized and p2p networks and traditional communications with centralization at the core
事务、存储引擎
优先队列
cesium rotate image