First and last index of a value
Given a list nums sorted in non-decreasing order (values may repeat) and an integer target, return [first, last]: the first and the last index where target appears. If it does not appear, return [-1, -1].
Aim for O(log n), even when target fills most of the list.
Examples
find_range([5,7,7,8,8,10], 8)→[3,4]find_range([5,7,7,8,8,10], 6)→[-1,-1]find_range([], 0)→[-1,-1]