This question evaluates a candidate's understanding of binary search algorithms, handling of boundary conditions and duplicates, and the ability to implement efficient index-finding functions on sorted arrays within the Coding & Algorithms domain.
Given a non-decreasing sorted array nums and a target value, implement two functions using binary search: (