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
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