Guest User

Untitled

a guest
Jun 24th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Problem Statement
  2.  
  3.  
  4. A restaurant has incoming orders for which you need to compute the costs based on the menu.
  5.  
  6. You might get multiple orders at times.
  7.  
  8. Examples:
  9. if the order is {:rice => 1, :noodles => 1}, and the menu is {:rice => 3, :noodles => 2}, then the cost is 5.
  10.  
  11. If the orders are {:rice => 1, :noodles => 1} and {:rice => 2, :noodles => 2} and the menu is {:rice => 3, :noodles => 2}, then the cost is 15.
Advertisement
Add Comment
Please, Sign In to add comment