[프로그래머스] 둘만의 암호
·
Algorithm
문제 풀이 def solution(s, skip, index): #알파벳 리스트 alphabet = ['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'] #리스트로 한글자씩 처리하기 위해 list 변수 정의 word = list(s) rm_alpha = list(skip) #skip에 포함되어있는 문자 alphabet에서 제거 for rm in rm_alpha : alphabet.remove(rm) for i in range..