An open API service indexing awesome lists of open source software.

https://github.com/queraltsm/maximumprice

Maximum Price in not consecutive Boxes
https://github.com/queraltsm/maximumprice

brute-force memoization tabulation

Last synced: over 1 year ago
JSON representation

Maximum Price in not consecutive Boxes

Awesome Lists containing this project

README

          

MaximumPrice


We have N boxes and inside which we can find money, and we have to calculate the maximum price of these

considering that we can not select consecutive boxes.


For example:

We have 5 boxes -> 3 2 10 1 5

The result must be 18 (box 1 + box 3 + box 5)