Page 1 of 1

https://www.devskill.com/CodingProblems/ViewProblem/338

PostPosted: Tue May 30, 2017 1:24 am
by indroneel
what is the solution approach for this problem ? using greedy i got wa. and using brute force i got tle.. :cry:

Re: https://www.devskill.com/CodingProblems/ViewProblem/338

PostPosted: Tue May 30, 2017 12:27 pm
by BishalG
You can solve this problem using dynamic programming. The details of editorial will be published soon.

Re: https://www.devskill.com/CodingProblems/ViewProblem/338

PostPosted: Tue May 30, 2017 2:56 pm
by indroneel
thanks