Reported interview periodJan 2026–Aug 2026
Leftmost local maximum in a numeric sequence
Given a sequence whose adjacent values never tie, locate the first element that rises above every neighbor it has. Report that element's position.
Practice focusRequirements - The input is one line of space-separated integers with no count prefix, and it holds at least one value. - A position is a local maximum when its value is strictly greater than each neighbor that exists; the first and last positions have only one neighbor. - Return the zero-based index of the earliest such position as a decimal string. - A single-element sequence qualifies at index 0 . - Because neighbors never tie, at least one local maximum always exists and no equality rule is needed.…