Nearest largest number to index i (Typescript)
My solution to a “Daily Coding Problem” that I received in my mail today. Given an array of numbers and an index i, return the index of the nearest larger number of the number at index i, where distance is measured in array indices. For example, given [4, 1, 3, 5, 6] and index 0, Read more



