Programming Question

Question: Assuming a binary tree with the following structure, write an implementation of a breadth-first search that returns true if a given integer exists in the tree. Class BinaryTree { Public int Value; Public BinaryTree Left {get; set;} Public BinaryTree Right {get; set;} } You will write: bool BreadthFirstSearch(BinaryTree node, int searchFor)

From: Ace the Programming Interview [Guiness]

Subject: Data Structures

Load Another Question


Select a Subject