diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -11,7 +11,7 @@
     def minimumOperations(self, nums: List[int]) -> int:
         uniq_non_zero = set()
         for num in nums:
-            if num != 0:
+            if num == 0:
                 continue
             uniq_non_zero.add(num)
         return len(uniq_non_zero)
