freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-172-investigating-n...

970 B

id challengeType title videoUrl localeTitle
5900f4181000cf542c50ff2b 5 Problem 172: Investigating numbers with few repeated digits Problema 172: Investigando números com poucos dígitos repetidos

Description

Quantos números de 18 dígitos n (sem zeros à esquerda) existem de tal forma que nenhum dígito ocorre mais de três vezes em n?

Instructions

Tests

tests:
  - text: <code>euler172()</code> deve retornar 227485267000992000.
    testString: 'assert.strictEqual(euler172(), 227485267000992000, "<code>euler172()</code> should return 227485267000992000.");'

Challenge Seed

function euler172() {
  // Good luck!
  return true;
}

euler172();

Solution

// solution required