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

898 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4181000cf542c50ff2b 5 Problem 172: Investigating numbers with few repeated digits 问题172调查重复数字很少的数字

Description

有多少个18位数字n没有前导零n中没有数字出现超过三次

Instructions

Tests

tests:
  - text: <code>euler172()</code>应返回227485267000992000。
    testString: 'assert.strictEqual(euler172(), 227485267000992000, "<code>euler172()</code> should return 227485267000992000.");'

Challenge Seed

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

euler172();

Solution

// solution required