clojure-hackos.electronics-shop
Solution to the Electronics Shop challenge. See: https://www.hackerrank.com/challenges/electronics-shop
money-spent
(money-spent keyboards drives budget)
Returns the highest subtotal within the given budget
, where the subtotal is the combined price of a keyboard and a drive. Returns -1
if all subtotals are over-budget.