leetcode 耗时100 1720. Decode XORed Array
Problem: 1720. 解码异或后的数组 耗时100%,异或运算是可以交换的 a ^ h c,则 h a ^ c, 或者 a h ^ c
Code
class Solution {
public:vector<int> decode(vector<int>& encoded, int first) {int n encoded.size();vector<int&…
2026/8/18 5:42:37