Painters partition problem getting 3 correct and 3 wrong test case
Hi Lavish,
Provide the question link.
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.
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.