Longest Within Budget — Puzzles: original problems

Given daily spending amounts, find the longest run of consecutive days whose combined spend fits a cap, and flag when a lone day already exceeds it.

Puzzles: original problems · Medium

More in Puzzles: original problems

All algorithm problems