TweakCode
Search lessons
Loading editor…
Test casesRun to compare output
Input
weights = [1,2,3,4,5,6,7,8,9,10], days = 5
Output
—
Expected
15

More practice

Same technique, different problems. Try them without the walkthrough.