Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I think you just need the .replace(' ','') in the expression of the if statement. No need to make the computer do extra work there.

  • Custom User Avatar

    Does that mean mine could also be wrong, using your test? please verify to help me learn more.

  • Custom User Avatar

    wrong solution, this code would return False for a string "a a a aa dab wd qwudbhq wkjdb jkqwdbkdb 948djq9w84 d9*b84wqjd1b89 q4wkj89db jk8qwdj k8qwbd 8kj5qwbd8 q1wb9jkd 2q5w9jkdb 1qwjb8d 1469b19 89589" which is valid by description, because final string is shorter than 140 chars

  • Custom User Avatar

    not working:

    let obj = {};
    namespace(obj, 'first.second', 5);
    namespace(obj, 'first.second');
    //undefined

  • Custom User Avatar

    Care to elaborate? Which tests are wrong and why do you think they are wrong?

  • Custom User Avatar

    I am afraid your test cases are not ok. Returning values are not correct for some cases and we cannot even console.log for finding why.

  • Custom User Avatar

    Backwards Read Primes are primes that when read backwards [...] are a different prime. (This rules out primes which are palindromes.)

  • Custom User Avatar

    Expected: '[70001, 70009, 70061, 70079, 70121, 70141, 70163, 70241]', instead got: '[70001, 70009, 70061, 70079, 70121, 70141, 70163, 70207, 70241]'
    Expected: '[70489, 70529, 70573, 70589]', instead got: '[70489, 70507, 70529, 70573, 70589]'

    both my returns were correct, pls fix your test cases