leetcode周賽 (2020/06/21)

一直忘了更新 周賽挺難 先更前兩題web 1. 數組異或操做 class Solution { public: int xorOperation(int n, int start) { int ans = 0; for(int i=0;i<n;i++) { ans ^= start+2*i; }
相關文章
相關標籤/搜索