Given a sorted array and a target value, this problem asks to find the index of the first element in the array that is greater than the target. For example, given the array [1 , 2, 3, 4, 5] and target value 3, the output would be 2 since 2 is the index of the first element in the array (4) that is greater than the target value.
The candidate's solution is complete and solves the problem. The candidate has used a binary search algorithm which is a good approach.
Evaluated at: 2022-11-23 02:16:02