* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
1.4 KiB
1.4 KiB
id, challengeType, title, videoUrl, localeTitle
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f3901000cf542c50fea3 | 5 | Problem 36: Double-base palindromes | 问题36:双基回文 |
Description
Instructions
Tests
tests:
- text: <code>doubleBasePalindromes(1000)</code>应该返回1772。
testString: assert(doubleBasePalindromes(1000) == 1772);
- text: <code>doubleBasePalindromes(50000)</code>应该返回105795。
testString: assert(doubleBasePalindromes(50000) == 105795);
- text: <code>doubleBasePalindromes(500000)</code>应该返回286602。
testString: assert(doubleBasePalindromes(500000) == 286602);
- text: <code>doubleBasePalindromes(1000000)</code>应该返回872187。
testString: assert(doubleBasePalindromes(1000000) == 872187);
Challenge Seed
function doubleBasePalindromes(n) {
// Good luck!
return n;
}
doubleBasePalindromes(1000000);
Solution
// solution required