[프로그래머스] 둘만의 암호 (Python)


[프로그래머스] 둘만의 암호 (Python)

문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/155652 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스 코드 def solution(s, skip, index): skip = [ord(x) for x in skip] # 생략할 번호 alpha_num = [x for x in range(97,123) if x not in skip] answer = [ ] for idx in range(len(s)): char_num = alpha_num.index(ord(s[idx])) # 리스트에..


원문링크 : [프로그래머스] 둘만의 암호 (Python)