Skip to content

Instantly share code, notes, and snippets.

@jianminchen
Created January 22, 2018 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jianminchen/3cfb6bcd1a83747ba9b427d0fb4298f1 to your computer and use it in GitHub Desktop.
Save jianminchen/3cfb6bcd1a83747ba9b427d0fb4298f1 to your computer and use it in GitHub Desktop.
Algorithm problem NP
// https://xkcd.com/287/
// Algorithm problem solving
// Item a: $13.54
// Item b: $9.33
// ...
// Item n: $7.00
// Find all possible orders that will total $20.50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment