← Questions
Most optional tasks under a daily time limit
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Each day has the same time limit. Every day must run its required task; if time allows, it can also run one optional task. You get n required durations (one per day) and n optional durations that can go on any day. Return the most optional tasks you can schedule without any day going over the limit. For example, with limit 7, required [4, 5, 2, 4] and optional [5, 6, 3, 4], two optional tasks fit.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
