Skip to content

Commit 3be8475

Browse files
authored
Update 3.py
1 parent 2755082 commit 3be8475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

12/3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def solution(s):
22
answer = len(s)
33
# 1개 단위(step)부터 압축 단위를 늘려가며 확인
4-
for step in range(1, len(s)):
4+
for step in range(1, len(s) // 2 + 1):
55
compressed = ""
66
prev = s[0:step] # 앞에서부터 step만큼의 문자열 추출
77
count = 1

0 commit comments

Comments
 (0)