I have an array with values and I need to find all values between min and max. I believe I need to construct some kind of search tree, is that correct? I want something like:
var values : number[] = tree.findBetween(min : number, max: number);
The performance of the search is the main criterion.
Also, I don't need to change the tree (add/remove values) once it is constructed.
What is it that I need? A binary-tree? A balanced search tree? A static search tree?
Where do I start?