Floor of a number in a sorted array with duplicates
Okay, so floor of a number in an array is defined as the largest number in the array that is lower than the provided number. If we find it in the array, we return its index, otherwise -1.
Okay, so floor of a number in an array is defined as the largest number in the array that is lower than the provided number. If we find it in the array, we return its index, otherwise -1.