Skip to content

Commit af4c777

Browse files
authored
Update 3.py
1 parent a99f4c0 commit af4c777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

12/3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def solution(s):
1010
# 이전 상태와 동일하다면 압축 횟수(count) 증가
1111
if prev == s[j:j + step]:
1212
count += 1
13-
# 다른 문자열이 나왔다면 (더 이상 압축하지 못하는 경우라면)
13+
# 다른 문자열이 나왔다면(더 이상 압축하지 못하는 경우라면)
1414
else:
1515
compressed += str(count) + prev if count >= 2 else prev
1616
prev = s[j:j + step] # 다시 상태 초기화

0 commit comments

Comments
 (0)