Comments
0

Can anyone help me out with Problem C? I approached it using the fact that the 'last local minima of the array (going from left to right) — 1' will be the required answer (and 0, if no local minima exists), but I got it wrong. Maybe my code didnt handle edge cases, but can anybody tell me if this approach is correct?