01.03 · Problem
Fewest Shifts to Reach the Target
This problem is part of solulu Pro
A courier must log at least target working hours. Each shift on the roster has a positive number of hours, and he can only take a block of consecutive shifts. What is the smallest number of shifts he needs? Return 0 if…
Lifetime ₹2,000 ₹1,000 · Beta offer
Item 3 of 94 · updated 2026-10-12