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/JustinsWorking May 08 '15
The only thing I could think is that the BFS would have a larger memory footprint; using DFS you could essentially just keep your current path and implement without even putting data on the heap.