Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hyperhello
on April 29, 2025
|
parent
|
context
|
favorite
| on:
Programming languages should have a tree traversal...
DFS is pure flow control, like iterating an array. BFS isn't really the same simple deal as DFS, it either requires approaching the next level and saving it for the next depth somewhere, or navigating the entire previous level again.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: