← Flipkart questions

Min months to reach work hours

Filed under Flipkart

Given an array of monthly work hours and a target work hours 'k', find the minimum number of consecutive or non-consecutive months needed to accumulate at least 'k' hours, or return -1 if impossible.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.