mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-26 22:01:30 -04:00
search and replace ```\n< with ```\n\n< to ensure there's an empty line before closing tags
2.5 KiB
2.5 KiB
title, id, challengeType, videoUrl, localeTitle
| title | id | challengeType | videoUrl | localeTitle |
|---|---|---|---|---|
| Amicable pairs | 5949b579404977fbaefcd737 | 5 | 友好的对 |
Description
Instructions
Tests
tests:
- text: <code>amicablePairsUpTo</code>是一个函数。
testString: assert(typeof amicablePairsUpTo === 'function');
- text: '<code>[[220,284]]</code> <code>amicablePairsUpTo(300)</code>应返回<code>[[220,284]]</code> 。'
testString: assert.deepEqual(amicablePairsUpTo(300), answer300);
- text: '<code>[[220,284],[1184,1210],[2620,2924]]</code> <code>amicablePairsUpTo(3000)</code>应返回<code>[[220,284],[1184,1210],[2620,2924]]</code> 。'
testString: assert.deepEqual(amicablePairsUpTo(3000), answer3000);
- text: '<code>[[220,284],[1184,1210],[2620,2924],[5020,5564],[6232,6368],[10744,10856],[12285,14595],[17296,18416]]</code> <code>amicablePairsUpTo(20000)</code>应返回<code>[[220,284],[1184,1210],[2620,2924],[5020,5564],[6232,6368],[10744,10856],[12285,14595],[17296,18416]]</code> 。'
testString: assert.deepEqual(amicablePairsUpTo(20000), answer20000);
Challenge Seed
function amicablePairsUpTo (maxNum) {
// Good luck!
return true;
}
After Test
console.info('after the test');
Solution
// solution required
/section>