|  | 
|  | 
| back to board | Runtime Error #12 on Python3 Used bfs instead dfsRe: Runtime Error #12 on Python3 It does not matter. Both DFS and BFS can be used to solve the problem. Yet, DFS code is shorter and nicer that BFS code. So, DFS is a better choice. So, I used DFS instead of BFS
 Edited by author 30.10.2019 13:41
 
 Edited by author 30.10.2019 13:41
 | 
 | 
|