For each index i of an array, let L[i] be the number of elements to its left that are strictly smaller than a[i], and R[i] the number of elements to its right that are strictly greater. Return the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.