Skip to content

Commit 4c108e0

Browse files
committed
3375
1 parent 79316e9 commit 4c108e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def min_operations(nums, k)
2+
return -1 if nums.any? { |num| num < k }
3+
nums.uniq.count { |num| num > k }
4+
end

0 commit comments

Comments
 (0)