From 5c3af7da459f5878f9cb160d2b750f30773a48b2 Mon Sep 17 00:00:00 2001 From: Won Joon Thomas Choi <113500771+724thomas@users.noreply.github.com> Date: Wed, 28 Oct 2026 23:12:46 +0900 Subject: [PATCH] Create 4083. Minimum Deletions to Make Array Sharp.py --- .../4083. Minimum Deletions to Make Array Sharp.py" | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 "leetcode3/\354\265\234\354\233\220\354\244\200/4083. Minimum Deletions to Make Array Sharp.py" diff --git "a/leetcode3/\354\265\234\354\233\220\354\244\200/4083. Minimum Deletions to Make Array Sharp.py" "b/leetcode3/\354\265\234\354\233\220\354\244\200/4083. Minimum Deletions to Make Array Sharp.py" new file mode 100644 index 00000000..430c2e84 --- /dev/null +++ "b/leetcode3/\354\265\234\354\233\220\354\244\200/4083. Minimum Deletions to Make Array Sharp.py" @@ -0,0 +1,9 @@ +class Solution: + def minDeletions(self, nums: list[int]) -> int: + ans = 0 + + for i in range(1, len(nums)): + if nums[i] == nums[i - 1]: + ans += 1 + + return ans