I tried to solve the problem “Painter’s Partition Problem” on hackerblocks but i am getting WA on multiple test cases. I have made a function isPossible which checks if ‘k’ painters can paint the entire board in ‘m’ time.
Question Link: https://hack.codingblocks.com/app/practice/1/1057/problem