3 ms·Nice. This solution is a type of dynamic programming, in disguise.by bo1024 3y agoNice. This solution is a type of dynamic programming, in disguise.