leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE | |
3190.cpp (204B)
1 class Solution { 2 public: 3 int minimumOperations(const vector<int> &nums) const { 4 int res = 0; 5 6 for (const int n : nums) 7 res += (n % 3 != 0); 8 9 return res; 10 } 11 };