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

Dev Skill archived problems can be discussed here.

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

by indroneel » Tue May 30, 2017 1:24 am

what is the solution approach for this problem ? using greedy i got wa. and using brute force i got tle.. :cry:
 
Posts: 2
Joined: Tue May 30, 2017 1:21 am

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

by BishalG » Tue May 30, 2017 12:27 pm

You can solve this problem using dynamic programming. The details of editorial will be published soon.
User avatar
 
Posts: 43
Joined: Tue Jan 17, 2017 10:10 pm

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

by indroneel » Tue May 30, 2017 2:56 pm

thanks
 
Posts: 2
Joined: Tue May 30, 2017 1:21 am


Who is online
Users browsing this forum: No registered users and 2 guests
cron