• + 2 comments

    Does anyone have a suggestion for a dp solution to this problem? I have only come up with a brute force solution that is too slow..