Can we solve this problem without binary search?
here is the link to the problem PROBLEM According to the editorial, this problem is solved using binary search +dp, but can we solve it with 2-D dp or any other way without using binary search ?
Repovive Starter Round 2 — Solution Discussion