Back to Freecodecamp

>-

curriculum/challenges/english/blocks/project-euler-problems-101-to-200/5900f4111000cf542c50ff23.md

latest468 B
Original Source

--description--

How many 20 digit numbers $n$ (without any leading zero) exist such that no three consecutive digits of $n$ have a sum greater than 9?

--hints--

consecutiveDigitsSum() should return 378158756814587.

js
assert.strictEqual(consecutiveDigitsSum(), 378158756814587);

--seed--

--seed-contents--

js
function consecutiveDigitsSum() {

  return true;
}

consecutiveDigitsSum();

--solutions--

js
// solution required