search and replace ```\n< with ```\n\n< to ensure there's an empty line before closing tags
1.5 KiB
1.5 KiB
id, challengeType, title, videoUrl, localeTitle
| id | challengeType | title | videoUrl | localeTitle |
|---|---|---|---|---|
| 5900f3941000cf542c50fea7 | 5 | Problem 40: Champernowne"s constant | 问题40:Champernowne的常数 |
Description
Instructions
Tests
tests:
- text: <code>champernownesConstant(100)</code>应该返回5。
testString: assert.strictEqual(champernownesConstant(100), 5);
- text: <code>champernownesConstant(1000)</code>应该返回15。
testString: assert.strictEqual(champernownesConstant(1000), 15);
- text: <code>champernownesConstant(1000000)</code>应该返回210。
testString: assert.strictEqual(champernownesConstant(1000000), 210);
Challenge Seed
function champernownesConstant(n) {
// Good luck!
return true;
}
champernownesConstant(100);
Solution
// solution required
/section>