Ad
  • Custom User Avatar

    Anything with the keywordthis in JS can't be 7kyu I would say. I spent also a while to figure out how to handle this.

  • Custom User Avatar
  • Custom User Avatar

    Please, don't post solutions in Discourse.

  • Default User Avatar

    @Jackyjk yes, 6141381611 is the correct answer for the random test inputs in the OP

  • Custom User Avatar

    I don't really see how that's possible. Is this for JS? Try submitting again.

  • Custom User Avatar

    mine : 6141381611
    ???

  • Custom User Avatar

    expected NaN to equal NaN
    I don't know
    wtf? what happened

  • Custom User Avatar

    Your solution does not even pass sample tests. You can start with debugging these locally.

  • Custom User Avatar
    1. Check on what inputs your solution fails (see here how)
    2. Recreate failing test case locally, run your solution in your IDE for such input
    3. Check if your solution returns correct answer in your IDE. If not, debug through it.
  • Custom User Avatar

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

  • Default User Avatar

    Ohhh now got it, thanks

  • Custom User Avatar

    you need a function that adds two numbers and by not carrying over the digits so 11+11=22 and 88+88=1616. This way the function will pass all the tests :)

  • Default User Avatar

    But I'm not able to understand how I can write the function. For example, if return num1 + num2, these it passes for the first set of test cases, however not in the 2nd set of cases and vice versa.

  • Custom User Avatar

    Ah i see thanks! haha..

  • Custom User Avatar

    The real, silly, and big addition names are describing the test not a type of function used. You always perform the same operation as described in the description. The tests then do a few examples where the result of the fucntion is what would be expected with 'real' addition; then some where you have to remember not to carry the difits; and then some where the input numbers get quite big.

  • Loading more items...