8 ms·my intuition tells me that this problem is best solved using DPby ssousa666 1y agomy intuition tells me that this problem is best solved using DP