We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2755082 commit 3be8475Copy full SHA for 3be8475
12/3.py
@@ -1,7 +1,7 @@
1
def solution(s):
2
answer = len(s)
3
# 1개 단위(step)부터 압축 단위를 늘려가며 확인
4
- for step in range(1, len(s)):
+ for step in range(1, len(s) // 2 + 1):
5
compressed = ""
6
prev = s[0:step] # 앞에서부터 step만큼의 문자열 추출
7
count = 1
0 commit comments