leetcode

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

3190.cpp (204B)


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