freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-172-investigating-numbers-with-few-repeated-digits.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

836 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4181000cf542c50ff2b 5 false Problem 172: Investigating numbers with few repeated digits 301807

Description

How many 18-digit numbers n (without leading zeros) are there such that no digit occurs more than three times in n?

Instructions

Tests

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

Challenge Seed

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

euler172();

Solution

// solution required