Daily challenge for 2026-06-29
545. Signal Strength Peak Distance
You are given an array of integers representing signal strengths recorded at different time intervals. For each interval, you want to find the distance to the next interval that has a strictly stronger signal. If no stronger signal exists in the future, the distance for that interval is 0.
Example:Input: signals = [30, 45, 20, 25, 50]Output: [1, 3, 1, 1, 0]
Run this challenge interactively in Python or JavaScript when the app loads.