DFS/BFS 개념https://programmers.co.kr/learn/courses/30/lessons/43165?language=python3DFS 풀이다른사람의 풀이입니다BFS 풀이