CodeLink-> https://ide.codingblocks.com/s/297724
I have used a different approache without using DP. I do not understand why it is not accepted.
Slimes DP problem
@imsaurabh,
Because we are only allowed to merge adjacent slimes, but you aren’t making sure that holds true.