freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-458-permutations-of...

994 B
Raw Blame History

id challengeType videoUrl title
5900f5361000cf542c510049 5 问题458项目的排列

Description

考虑由“项目”一词的字母组成的字母AA = {cejoprt}。令Tn为长度为n的字符串数该字符串由来自A的字母组成其中没有子字符串该子字符串是“项目”的5040个排列之一。

T7= 77-7= 818503。

找到T1012。给出答案的最后9位数字。

Instructions

Tests

tests:
  - text: <code>euler458()</code>应该返回423341841。
    testString: assert.strictEqual(euler458(), 423341841);

Challenge Seed

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

euler458();

Solution

// solution required

/section>