freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-303-multiples-with-...

1.0 KiB

id challengeType title videoUrl localeTitle
5900f49b1000cf542c50ffae 5 Problem 303: Multiples with small digits Problema 303: Múltiplos com dígitos pequenos

Description

Para um inteiro positivo n, defina f (n) como o múltiplo menos positivo de n que, escrito na base 10, usa apenas dígitos ≤ 2. Assim f (2) = 2, f (3) = 12, f (7) = 21, f (42) = 210, f (89) = 1121222. Além disso, .

Encontrar .

Instructions

Tests

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

Challenge Seed

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

euler303();

Solution

// solution required