Return the first index where the running score total reaches the target.
Unlock detailed company stats for this questionUpgrade
Given an array of scores and a target score, return the first index where the sum of scores from index 0 through that index is greater than or equal to the target score; otherwise return -1.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
