Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
coding exercise
branch: master

README.md

PROGRAMMING EXERCISE

With apologies to xkcd, please provide a solution to the following programming exercise:

You will be given a data file. The first line of the data file will have a target price. The following lines contain a menu of dishes.

Write a program to read in the data file and find any combination of dishes that add up exactly to the target price specified on the first line of the data file. If there is no solution, your program should specify that there is no combination of dishes that will be equal in cost to the target price.

Your program will be tested on multiple data sets so please provide syntax on how to invoke your program with the correct data file. You may use any programming language of your choice.

Program Execution

See the UI integration feature for how to execute this program from the command line.

Something went wrong with that request. Please try again.