Ad
  • Custom User Avatar
  • Custom User Avatar

    thank you man

  • Custom User Avatar

    Don't print, but return the result.

  • Custom User Avatar

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

  • Custom User Avatar

    I was specifically getting clarification on requirements. Requirements get updated as they become more clear. Please don't condescend in environments like this as it is extremely unhelpful.

  • Custom User Avatar

    well isn't part of the job of an programmer getting the information (in this case from the unit tests) to be able to implement what he/she should implement?

    In the real world you won't get precise explaination what to do.

  • Custom User Avatar

    There is a sample test for that, isn't it?

    add(122, 81), 1103
    
  • Custom User Avatar

    Honestly, the description doesn't account for a scenario where the carry occurs within the number and not at the far right.

  • Custom User Avatar

    The description should definitely say:

    "Only when there is a carry digit is the result different from real addition.""

    The meme does not provide an example for all cases.

  • Custom User Avatar

    🥳

  • Custom User Avatar

    well i thought the meme should make it pretty clear should I add the explanation again? I think that this kata does not need it but yeah....
    Btw sillyAdd(2,11) is really just 11+2 only when there is a carry digit the result is diffrent from a real addition.

  • Custom User Avatar

    In this "silly addition" method, you are still required to add corresponding digits for ones, tens, hundreds, etc. You align numbers to the right, not to the left.

  • Custom User Avatar

    According to the limited rules, shouldn't add(2, 11) => 31 not the expected 13?