1.5 KiB
1.5 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f3891000cf542c50fe9c | 5 | 问题29:不同的权力 |
Description
Instructions
Tests
tests:
- text: <code>distinctPowers(15)</code>应该返回177。
testString: assert.strictEqual(distinctPowers(15), 177);
- text: <code>distinctPowers(20)</code>应该返回324。
testString: assert.strictEqual(distinctPowers(20), 324);
- text: <code>distinctPowers(25)</code>应该返回519。
testString: assert.strictEqual(distinctPowers(25), 519);
- text: <code>distinctPowers(30)</code>应该返回755。
testString: assert.strictEqual(distinctPowers(30), 755);
Challenge Seed
function distinctPowers(n) {
// Good luck!
return n;
}
distinctPowers(30);
Solution
// solution required
/section>