Here’s my code. It is passing 3 cases, please help me rectify the code
Painter's Partition Problem
You do not sort the array
take the start element as the largest element of the array by using start = max(start, a[i] )
initialise count = 1 in the isPossible function since the minimum no of painters is 1
Did the required changes :
Still the same issue
udpated with comments where i updated the code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.