ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1272. Non-Yekaterinburg Subway

Runtime Error #12 on Python3
Posted by Tihon Molotkov`~ 24 Jun 2019 09:33
Used bfs instead dfs
Re: Runtime Error #12 on Python3
Posted by ____NOOR 30 Oct 2019 13:40
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