Files
freeCodeCamp/curriculum/challenges/portuguese/10-coding-interview-prep/project-euler/problem-164-numbers-for-which-no-three-consecutive-digits-have-a-sum-greater-than-a-given-value.md

825 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4111000cf542c50ff23 Problema 164: Números para os quais nenhuma sequência de três algarismos consecutivos têm uma soma maior que um determinado valor 5 301798 problem-164-numbers-for-which-no-three-consecutive-digits-have-a-sum-greater-than-a-given-value

--description--

Quantos números de 20 algarismos n (sem zeros à esquerda) existem, de modo que não haja três algarismos consecutivos de n com uma soma maior que 9?

--hints--

consecutiveDigitsSum() deve retornar 378158756814587.

assert.strictEqual(consecutiveDigitsSum(), 378158756814587);

--seed--

--seed-contents--

function consecutiveDigitsSum() {

  return true;
}

consecutiveDigitsSum();

--solutions--

// solution required