algorithms.tutorialhorizon.com

Search the Element in a binary tree - With and Without Recursion | Algorithms

Given a binary tree and a given number x, Write an recursive algorithm to search the element in the tree. This is one of the very basic problems of tree. If you are new to binary trees, this problem might help you to understand the tree. First we will see the recursive solution then I will show you how to solve it without recursion.