leetle

Daily challenge for 2026-08-06

583. Words Exceeding Their Index

Given an array of strings words, return the number of words whose length is strictly greater than their 0-based index in the array.

Example:
Input: words = ["apple", "banana", "cat", "dog"]
Output: 3

Explanation:
- Index 0: "apple" has length 5 (5 > 0) -> Yes
- Index 1: "banana" has length 6 (6 > 1) -> Yes
- Index 2: "cat" has length 3 (3 > 2) -> Yes
- Index 3: "dog" has length 3 (3 > 3) -> No

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