Trough index in a Valley array
Problem Finding the Minimum Value in a Valley-Shaped Array Examples Example 1: Input: arr = [12, 8, 4, 2, 3, 10]; Output: 3 Solution Method 1 - Binary Search Use a binary search to efficiently find the trough element (the minimum value) in the array. ...