freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/project-euler/problem-55-lychrel-numbers....

1.2 KiB

id challengeType title videoUrl localeTitle
5900f3a31000cf542c50feb6 5 Problem 55: Lychrel numbers

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert.strictEqual(countLychrelNumbers(1000), 13, "<code>countLychrelNumbers(1000)</code> should return 13.");'
  - text: ''
    testString: 'assert.strictEqual(countLychrelNumbers(5000), 76, "<code>countLychrelNumbers(5000)</code> should return 76.");'
  - text: ''
    testString: 'assert.strictEqual(countLychrelNumbers(10000), 249, "<code>countLychrelNumbers(10000)</code> should return 249.");'
  - text: ''
    testString: 'assert.strictEqual(countLychrelNumbers(3243), 39, "Your function should count all Lychrel numbers.");'
  - text: ''
    testString: 'assert.strictEqual(countLychrelNumbers(7654), 140, "Your function should pass all test cases.");'

Challenge Seed

function countLychrelNumbers(num) {
  // Good luck!
  return true;
}

countLychrelNumbers(10000);

Solution

// solution required