freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-31-coin-sums.chines...

929 B

id challengeType title videoUrl localeTitle
5900f38b1000cf542c50fe9e 5 Problem 31: Coin sums

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(coinSums(50) == 451, "<code>coinSums(50)</code> should return 451.");'
  - text: ''
    testString: 'assert(coinSums(100) == 4563, "<code>coinSums(100)</code> should return 4563.");'
  - text: ''
    testString: 'assert(coinSums(150) == 21873, "<code>coinSums(150)</code> should return 21873.");'
  - text: ''
    testString: 'assert(coinSums(200) == 73682, "<code>coinSums(200)</code> should return 73682.");'

Challenge Seed

function coinSums(n) {
  // Good luck!
  return n;
}

coinSums(200);

Solution

// solution required