leetle

Daily challenge for 2026-06-19

535. Crystal Ball Height Threshold

You are given a sorted array of distinct integers representing the height levels of a building. You are also given a target threshold value. You need to find the index of the first height level that is greater than or equal to the threshold. If all height levels are smaller than the threshold, return the length of the array.

Example:
Input: levels = [10, 20, 30, 40, 50], threshold = 35
Output: 3

Run this challenge interactively in Python or JavaScript when the app loads.