Painters partition problem getting 3 correct and 3 wrong test case

https://ide.codingblocks.com/s/60665

Hi Lavish,
Provide the question link.

https://hack.codingblocks.com/contests/c/588/716

Hi Lavish
Your code doesn’t even pass the sample input case. For 2 painters and 2 boards, each of length 1 and 10 respectively, the minimum amount of time to paint all the boards is 10 whereas your code gives 1 as output.

https://ide.codingblocks.com/s/61609
1 testcase wrong

Hi Varshney
The if condition should be h >= k instead of h == k.

Hey Lavish, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.