[LeetCode] 443. String Compression 해설 및 풀이 (Python)
·
Study/코딩 테스트
LeetCode 443. String Compressionhttps://leetcode.com/problems/string-compression/description/?envType=study-plan-v2&envId=leetcode-75 Given an array of characters chars, compress it using the following algorithm: Begin with an empty string s. For each group of consecutive repeating characters in chars: If the group's length is 1, append the character to s. Otherwise, append the character follow..