[programmers] 단어 변환 (python)
·
Study/algorithm
https://school.programmers.co.kr/learn/courses/30/lessons/43163 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr최단 시간을 구해야 하기 때문에 BFS를 사용해서 풀이하였다.많이 어렵진 않은 문제from collections import deque# 두 단어 사이 다른 글자 개수 확인def check(word1, word2): cnt = 0 for i in range(len(word1)): if word1[i] != word2[i]: cnt += 1 return cn..