3 ms·
Absolutely not lmao. Many problems are more efficiently solved with bfs vs dfs or vice versa. If the problem requires you to reach a leaf dfs is usually better
by HDThoreaun 2y ago
Absolutely not lmao. Many problems are more efficiently solved with bfs vs dfs or vice versa. If the problem requires you to reach a leaf dfs is usually better
- marcosdumay 2y agoWhat? Neither of them are efficient in any practical sense.