Haskell Quiz/Countdown

From HaskellWiki
Jump to: navigation, search

This question was based on a UK game show. Given a target number, a set of source numbers which may be used at most once, and the 4 basic arithmetic operators (+, -, *, /), construct the whole number closest to the target.

The Problem