PCCP1 프로그래머스 '[PCCP 모의고사 #1] 1번 - 외톨이 알파벳' 파이썬 풀이 https://school.programmers.co.kr/learn/courses/20847/lessons/255900?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(input_string): words = [input_string[0]] for word in input_string: if word != words[-1]: words.append(word) words = {answer:True for answer in words if words.count(answer) > 1} answer = ''... 2024. 3. 15. 이전 1 다음