From 47678ddb7cce16fbc0b5a330981c702e0436fe77 Mon Sep 17 00:00:00 2001 From: Won Joon Thomas Choi <113500771+724thomas@users.noreply.github.com> Date: Wed, 12 Aug 2026 23:14:05 +0900 Subject: [PATCH 1/2] Create 914. X of a Kind in a Deck of Cards.py --- .../914. X of a Kind in a Deck of Cards.py" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "leetcode3/\354\265\234\354\233\220\354\244\200/914. X of a Kind in a Deck of Cards.py" diff --git "a/leetcode3/\354\265\234\354\233\220\354\244\200/914. X of a Kind in a Deck of Cards.py" "b/leetcode3/\354\265\234\354\233\220\354\244\200/914. X of a Kind in a Deck of Cards.py" new file mode 100644 index 00000000..966d8678 --- /dev/null +++ "b/leetcode3/\354\265\234\354\233\220\354\244\200/914. X of a Kind in a Deck of Cards.py" @@ -0,0 +1,15 @@ +from collections import defaultdict +class Solution: + def hasGroupsSizeX(self, deck: List[int]) -> bool: + counter = defaultdict(int) + for d in deck: + counter[d] += 1 + + count = counter[deck[0]] + for _, freq in counter.items(): + if freq == 1: + return False + count = gcd(count, freq) + + return True if count != 1 else False + From b1463d3d1296f0e6d24a9b07eed49790412adb0b Mon Sep 17 00:00:00 2001 From: Won Joon Thomas Choi <113500771+724thomas@users.noreply.github.com> Date: Wed, 12 Aug 2026 23:14:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Rename=20leetcode3/749.=20Contain=20Virus.p?= =?UTF-8?q?y=20to=20leetcode3/=EC=B5=9C=EC=9B=90=EC=A4=80/749.=20Contain?= =?UTF-8?q?=20Virus.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\354\265\234\354\233\220\354\244\200/749. Contain Virus.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename leetcode3/749. Contain Virus.py => "leetcode3/\354\265\234\354\233\220\354\244\200/749. Contain Virus.py" (100%) diff --git a/leetcode3/749. Contain Virus.py "b/leetcode3/\354\265\234\354\233\220\354\244\200/749. Contain Virus.py" similarity index 100% rename from leetcode3/749. Contain Virus.py rename to "leetcode3/\354\265\234\354\233\220\354\244\200/749. Contain Virus.py"