
[프로그래머스] Level2, 3차 압축 (Python)
·
알고리즘/프로그래머스
문제 https://programmers.co.kr/learn/courses/30/lessons/17684 코딩테스트 연습 - [3차] 압축 TOBEORNOTTOBEORTOBEORNOT [20, 15, 2, 5, 15, 18, 14, 15, 20, 27, 29, 31, 36, 30, 32, 34] programmers.co.kr 코드 def solution(msg): answer = [] eng = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] while len(msg) > 0: w = msg[0] cnt = 0 if len(msg) == 1: answer.app..