From 7dcecad1d8ace13ea0061ade5cdf190f7090da36 Mon Sep 17 00:00:00 2001 From: hyedall Date: Sat, 14 Nov 2026 17:25:59 +0900 Subject: [PATCH 1/2] to lower case solution --- to-lower-case/hyedall.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 to-lower-case/hyedall.py diff --git a/to-lower-case/hyedall.py b/to-lower-case/hyedall.py new file mode 100644 index 0000000000..d3375b8f5b --- /dev/null +++ b/to-lower-case/hyedall.py @@ -0,0 +1,5 @@ +# https://leetcode.com/problems/to-lower-case/ + +class Solution: + def toLowerCase(self, s: str) ->9 str: + return s.lower() From 6160cc2418f0bb9159fdf3c5bc90d433bf6860f0 Mon Sep 17 00:00:00 2001 From: hyedall Date: Sun, 15 Nov 2026 13:58:58 +0900 Subject: [PATCH 2/2] fix: correct type annotation and add complexity analysis --- to-lower-case/hyedall.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/to-lower-case/hyedall.py b/to-lower-case/hyedall.py index d3375b8f5b..a0bd222a56 100644 --- a/to-lower-case/hyedall.py +++ b/to-lower-case/hyedall.py @@ -1,5 +1,10 @@ -# https://leetcode.com/problems/to-lower-case/ +""" +https://leetcode.com/problems/to-lower-case/ + +시간 복잡도: O(n) +공간 복잡도: O(n) +""" class Solution: - def toLowerCase(self, s: str) ->9 str: + def toLowerCase(self, s: str) -> str: return s.lower()