Ice Cream Parlor

  • + 2 comments

    Two friends like to pool their money and go to the ice cream parlor. They always choose two distinct flavors and they spend all of their money.

    Given a list of prices for the flavors of ice cream, select the two that will cost all of the money they have.