We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99f4c0 commit af4c777Copy full SHA for af4c777
1 file changed
12/3.py
@@ -10,7 +10,7 @@ def solution(s):
10
# 이전 상태와 동일하다면 압축 횟수(count) 증가
11
if prev == s[j:j + step]:
12
count += 1
13
- # 다른 문자열이 나왔다면 (더 이상 압축하지 못하는 경우라면)
+ # 다른 문자열이 나왔다면(더 이상 압축하지 못하는 경우라면)
14
else:
15
compressed += str(count) + prev if count >= 2 else prev
16
prev = s[j:j + step] # 다시 상태 초기화
0 commit comments