최단 단어 변환 수를 찾는 것이니 BFS로 풀자는 것만 알면 어려운 문제는 아니라고 생각한다.. 단어 최대 길이도 10이고 배열 길이도 max가 50이라 이중for문이 들어가도 시간초과가 안뜬다. from collections import dequedef diff(word, target): cnt = 0 for i in range(len(word)): if word[i] != target[i]: cnt += 1 return cnt def solution(begin, target, words): if target not in words: return 0 visited = [0 for i in range(len(words))] ..