r/programming • u/svpino • May 08 '15
Five programming problems every Software Engineer should be able to solve in less than 1 hour
https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k
Upvotes
1
u/billatq May 08 '15
You have to explore all the state space either way, so I guess it doesn't really matter, but housekeeping for the paths that you have visited is a little bit easier on the BFS. The author mentioned nothing about time/space complexity trade-offs, which would probably come into this were you to ask it.