4 ms·It's also possible to use dynamic-programming to elegantly solve the mentioned problem.by majid_k 6y agoIt's also possible to use dynamic-programming to elegantly solve the mentioned problem.