For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match. Bill Bryson

Print BST keys in the given range

Language Java | Level Intermediate | Category Data structure | September 6, 2015 8:02 am


Data structure Description

Write a program to Print Binary search Tree nodes in the given range on index values. If the Binary search tree has 6 items and pass 3 to the function, it print the tree node from 3 to 6


Output

   					 

Items form Binary Search Tree: 4  5  6  12  
The 4th item form Binary Search Tree: 4 5 6

				    

Comments


No comments available!

Please login to add comments.