• + 6 comments

    I think the problem should go in another category. The DP solution has n^2 complexity and to pass all tests a non-DP solution is required. Maybe it is discussable weather the nlogn complexity solution is DP or not, but still very misleading here ...