Painter Problem Doubt

My last two test cases are wrong. What is missing in my code? Please Help !

Modified Code

there are some few errors in ispossible function

try now

I am not able to identify any other error in my code . Can you please help !

Modified Code

you have make a mistake at taking input
first you have to take n and then k

1 Like