knapsack

Algorithmia Platform License

Run an Example

{
  "weight": 8,
  "value": 29,
  "maxWeight": 8,
  "items": [
    [
      1,
      15
    ],
    [
      3,
      9
    ],
    [
      4,
      5
    ]
  ]
}

Install & Use

Use

curl -X POST -d '[[[1,15],[5,10],[3,9],[4,5]],8]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/thatguy2048/knapsack/0.1.0