From ca4bb096671fbcc37a01ad45e8f95c261ad21bd5 Mon Sep 17 00:00:00 2001 From: MIN JI CHOI Date: Fri, 11 Sep 2026 16:40:27 +0900 Subject: [PATCH] 0911 --- .../\354\265\234\353\257\274\354\247\200/3467.py" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "leetcode3/\354\265\234\353\257\274\354\247\200/3467.py" diff --git "a/leetcode3/\354\265\234\353\257\274\354\247\200/3467.py" "b/leetcode3/\354\265\234\353\257\274\354\247\200/3467.py" new file mode 100644 index 00000000..b5f63db2 --- /dev/null +++ "b/leetcode3/\354\265\234\353\257\274\354\247\200/3467.py" @@ -0,0 +1,11 @@ +class Solution: + def transformArray(self, nums: List[int]) -> List[int]: + odd, even = 0, 0 + for n in nums: + if n % 2 == 0: + even += 1 + else: + odd += 1 + result = [0] * even + [1] * odd + + return result \ No newline at end of file