Add the numbers of an array one by one to a start value. Find the smallest positive start value for which the running total never drops below 1.
Add the numbers of an array one by one to a start value. Find the smallest positive start value for which the running total never drops below 1.
Opens with the full question.