It would be helpful if you were more specific and concrete in your question. There are multiple way to work with binary trees and there are multiple ways to traverse them. If you provide a small code sample that demonstrates the specific data structure you're using and the specific behavior you want, then it will be easier to help. Otherwise, we'll just point you to the documentation or we'll have to make guesses about what you want.