Question bank › Monotonic Stack
Dsa Monotonic Stack Hard

Monotonic Sequence Indexes

You need to find the indexes of the last elements of strictly increasing subarrays in a given integer array. Implement `find_monotonic_indexes(arr: List[int]) -> List[int]`. ### Input A single line with space-separated integers representing the array. ### Output A single line containing space-separated integers representing the indexes of the last elements of strictly increasing subarrays. ### Example Input: 1 2 3 2 5 6 1 2 3 Output: 2 5 8

Key concepts

monotonic_stackarrayindex

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.