Solution to http://xkcd.com/287
-
Clone the reop
git clone
-
Install dependencies
bundle install
-
Run specs
rspec
-
Make CLI executable
chmod +x bin/cli
bin/cli -f <PATH_TO_FILE>
or
bin/cli --file <PATH_TO_FILE>
Either command will read the data file and output the different possible combinations of menu items where the sum of a combination equals the target price (the first line of the data file). If no combinations are found it will output...
No combination of menu items is equal in cost to the target price"