leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

2527.cpp (177B)


      1 class Solution {
      2   public:
      3     int xorBeauty(const vector<int> &nums) {
      4         int res = 0;
      5         for (const int n : nums)
      6             res ^= n;
      7         return res;
      8     }
      9 };