But also consider the size of the data set. If you have less than 100 values, and linear search can be faster than binary. Fewer branches etc
But also consider the size of the data set. If you have less than 100 values, and linear search can be faster than binary. Fewer branches etc