Getting wrong output
Painters Problem
Darshpreet I would recommend you to go through this youtube lecture series on painter’s problem and then try to code your solution using this approach only, and let me know if you didnt understood anything.
1 Like