문제https://school.programmers.co.kr/learn/courses/30/lessons/154538 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 문제 풀이 (Java)import java.util.*;class Solution { public int solution(int x, int y, int n) { int answer = -1; Queue queue = new LinkedList(); queue.add(new int[] { x, 0 }); boolean visited[] = new boolean[y + 1]; visited[x] = true; if (x == y) { ..