https://ide.codingblocks.com/s/193672 here is the code for the painter problem which is on hackerblocks can you please tell me why this is falling the 2 test cases
Painter problem
Itβs not working for
2 2
15 10.
Check this out for your reference : https://ide.codingblocks.com/s/194280