Skip to content

esambo/restaurant_orders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

coding exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages