freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-63-powerful-digit-c...

882 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3ab1000cf542c50febe 5 Problem 63: Powerful digit counts 问题63强大的数字计数

Description

5位数字16807 = 75也是第五种力量。类似地9位数字134217728 = 89是第九次幂。存在多少个n位正整数它们也是n次幂

Instructions

Tests

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

Challenge Seed

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

euler63();

Solution

// solution required