1.2 KiB
1.2 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f3701000cf542c50fe83 | 5 | Problem 4: Largest palindrome product | 问题4:最大的回文产品 |
Description
n
数字的乘积制成的最大回文。 Instructions
Tests
tests:
- text: <code>largestPalindromeProduct(2)</code>应返回9009。
testString: 'assert.strictEqual(largestPalindromeProduct(2), 9009, "<code>largestPalindromeProduct(2)</code> should return 9009.");'
- text: <code>largestPalindromeProduct(3)</code>应返回906609。
testString: 'assert.strictEqual(largestPalindromeProduct(3), 906609, "<code>largestPalindromeProduct(3)</code> should return 906609.");'
Challenge Seed
function largestPalindromeProduct(n) {
// Good luck!
return true;
}
largestPalindromeProduct(3);
Solution
// solution required