I would like to ask a question about the algorithm.
Suppose there are several segments.(segments number not fixed,maybe so longd)
example:
segment data range (data range not fixed)
**A 0~10**
**B 11~45**
**C 46~49**
**D 50~100**
**E 101~105**
**F 106~128**
If input → 99
I will get output ‘D’ from my program.
I will put this example implementation in java.
So, Do you have any way or algorithm to make the program execution time faster?