This problem has DP as a tag in it, I was able to solve it without using DP but since I don't mind getting better at DP (xD) I would like to know how to solve it using DP. I would appreciate your help, thanks in advance.
This problem has DP as a tag in it, I was able to solve it without using DP but since I don't mind getting better at DP (xD) I would like to know how to solve it using DP. I would appreciate your help, thanks in advance.