Nearest Tower with Smaller Height
Filed under Atlassian
The question
Given an array representing tower heights, find for each index the nearest index (left or right) with a strictly smaller height. If both exist on left and right, choose the closest one.
No write-up yet. Related questions below have one.
Related Atlassian questions
Collected from public candidate posts and coding forums. Updated Nov 2026.