From ce223e7a974cdfaea8ebe7b3cc26f3d4b0ca0e0c Mon Sep 17 00:00:00 2001 From: Ebee1205 Date: Mon, 21 Jul 2025 10:32:41 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=A1=B0=EC=9D=80=EB=B9=84]=20Day15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3039.py" | 16 ++++++++++++++++ .../\354\241\260\354\235\200\353\271\204/848.py" | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 "leetcode2/2medium/\354\241\260\354\235\200\353\271\204/3039.py" create mode 100644 "leetcode2/2medium/\354\241\260\354\235\200\353\271\204/848.py" diff --git "a/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/3039.py" "b/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/3039.py" new file mode 100644 index 00000000..3c693e20 --- /dev/null +++ "b/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/3039.py" @@ -0,0 +1,16 @@ +class Solution: + def lastNonEmptyString(self, s: str) -> str: + # 아 첨 등장하는 알파벳 지우기 + # 마지막 operation 전 결과 출력 + arr = [] + last_l = '' + + for l in s: + arr.append(l) + print(arr) + + for l in arr: + if l == last_l: + pass + else: + pass diff --git "a/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/848.py" "b/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/848.py" new file mode 100644 index 00000000..453363ff --- /dev/null +++ "b/leetcode2/2medium/\354\241\260\354\235\200\353\271\204/848.py" @@ -0,0 +1,8 @@ +class Solution: + def shiftingLetters(self, s: str, shifts: List[int]) -> str: + i = 0 + + for l in s: + print(l, shifts[i]) + a = ord(l) + ord() + i+=1 \ No newline at end of file