I have the following table:
block | start | end
1 | 1 | 4
2 | 5 | 9
3 | 10 | 20
4 | 21 | 50
..........
n | 1000 | 2000
When given a value to variable c i have to search which block contains c ( start < c < end ). For example when c = 1001, c is in block n. What data structure would be the most efficient?