Question: Please help explain how to solve this. Thank you :) 5. Sloth Sequence (HARD!) A sloth has a sequence of numbers giving the calories obtainable
Please help explain how to solve this. Thank you :)

5. Sloth Sequence (HARD!) A sloth has a sequence of numbers giving the calories obtainable by hunting on each day. The sloth must obtain at least T calories total, but wants to find a smallest sequence of contiguous days to do this. Formally, you are given a sequence S = si, ..., Sn of numbers, and a number T. You want to find indices f and 2,1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
