leetle

Daily challenge for 2026-03-29

453. Find First Negative Threshold

You are given a sorted array of integers nums in non-increasing order (from largest to smallest). Your task is to find the index of the first negative integer in the array. If no negative integer exists, return -1. You should aim for an O(log n) solution.

Example:
Input: nums = [10, 5, 2, 0, -1, -3]
Output: 4

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