Hacker Newsnew | comments | show | ask | jobs | submit login

Yeah BFS/DFS are O(n) for graphs and trees.



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: