leetcode

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

2683.cpp (182B)


0 class Solution { 1 public: 2 bool doesValidArrayExist(const vector<int> &derived) const { 3 return accumulate(begin(derived), end(derived), 0, bit_xor<int>()) == 0; 4 } 5 };