diff --git a/challenges/08-coding-interview-questions-and-take-home-assignments/project-euler-problems.json b/challenges/08-coding-interview-questions-and-take-home-assignments/project-euler-problems.json index ba4e6083ae..8bedba0816 100644 --- a/challenges/08-coding-interview-questions-and-take-home-assignments/project-euler-problems.json +++ b/challenges/08-coding-interview-questions-and-take-home-assignments/project-euler-problems.json @@ -984,24 +984,27 @@ "type": "bonfire", "title": "Problem 31: Coin sums", "tests": [ - "assert.strictEqual(euler31(), 73682, 'message: euler31() should return 73682.');" + "assert(coinSums(50) == 451, 'message: coinSums(50) should return 451.');", + "assert(coinSums(100) == 4563, 'message: coinSums(100) should return 4563.');", + "assert(coinSums(150) == 21873, 'message: coinSums(150) should return 21873.');", + "assert(coinSums(200) == 73682, 'message: coinSums(200) should return 73682.');" ], "solutions": [], "translations": {}, "challengeSeed": [ - "function euler31() {", + "function coinSums(n) {", " // Good luck!", - " return true;", + " return n;", "}", "", - "euler31();" + "coinSums(200);" ], "description": [ "In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:", "1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).", "It is possible to make £2 in the following way:", "1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p", - "How many different ways can £2 be made using any number of coins?" + "How many different ways can £(n) be made using any number of coins?" ] }, {