Binary search for the rightmost element where predicate is true. Array must be sorted such that predicate is true for a prefix and false after. Returns -1 if predicate is false for all elements.
Binary search for the rightmost element where predicate is true. Array must be sorted such that predicate is true for a prefix and false after. Returns -1 if predicate is false for all elements.