[LeetCode] Smallest Index With Digit Sum Equal to Index

1 · · May 18, 2025, 12:47 p.m.
Summary
3550. Smallest Index With Digit Sum Equal to Index You are given an integer array nums. Return the smallest index i such that the sum of the digits of nums[i] is equal to i. If no such index exists, return -1. ...