Category : binary-tree

I need to traverse a binary search tree and find the nth item, I’m able to successfully traverse the tree, however when I try to implement a limit, or end point, to stop at the nth item–returning it’s value, I can’t get my counter to increment. I’ve tried about fifty different ways to get the ..

Read more