Python으로 구현한 1844번 게임 맵 최단거리 문제 풀이입니다. https://programmers.co.kr/learn/courses/30/lessons/1844 코딩테스트 연습 - 게임 맵 최단거리 [[1,0,1,1,1],[1,0,1,0,1],[1,0,1,1,1],[1,1,1,0,1],[0,0,0,0,1]] 11 [[1,0,1,1,1],[1,0,1,0,1],[1,0,1,1,1],[1,1,1,0,0],[0,0,0,0,1]] -1 programmers.co.kr from collections import deque def bfs(arr, x, y) : q = deque() dx = [0, 1, 0, -1] dy = [1, 0, -1, 0] q.append((x, y)) while q : cx, cy..