From 492d101e5783660fed89f11ec1a489a0b5547c61 Mon Sep 17 00:00:00 2001 From: chayan das Date: Sat, 22 Nov 2025 22:20:25 +0530 Subject: [PATCH] Create 3190. Find Minimum Operations to Make All Elements Divisible by Three --- ... Operations to Make All Elements Divisible by Three | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 3190. Find Minimum Operations to Make All Elements Divisible by Three diff --git a/3190. Find Minimum Operations to Make All Elements Divisible by Three b/3190. Find Minimum Operations to Make All Elements Divisible by Three new file mode 100644 index 0000000..ed7894b --- /dev/null +++ b/3190. Find Minimum Operations to Make All Elements Divisible by Three @@ -0,0 +1,10 @@ +class Solution { +public: + int minimumOperations(vector& nums) { + int operations = 0; + for(int x : nums){ + if(x % 3 != 0) operations++; + } + return operations; + } +};