Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # let Q be queue.
- # Q.enqueue( tree )
- # while ( Q is not empty)
- # node = Q.dequeue( )
- # for all children of node
- # Q.enqueue( child )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement