Ad
  • Custom User Avatar
  • Custom User Avatar

    On social media, OP usually means "original poster" or "original post."

  • Default User Avatar

    please, wha is OP??. i have the same issue

  • Custom User Avatar

    That's not your sole problem, but your .add method should return a new Vector (or throw an error), not an array:

    a.add(b);      // should return a new Vector([4, 6, 8])
    
  • Custom User Avatar

    well , I understand you , I will try to raise the question again , if it doesn't bother you and you have already solved the problem , could you suggest a new condition for it , it would be much more convenient , I will try to supplement the condition with your example . Thank you in advance for such great assistance to kata

  • Custom User Avatar

    explaining for you, this is a sequence of numbers starting from n and continuing in steps of 1, however, you need to understand that understanding the condition of the problem is also important, since a detailed condition in your understanding will cut off the scope for creativity and actually provide a ready-made solution to the problem, which from my point of view would be highly undesirable

  • Custom User Avatar

    but at the same time, the description clearly states that the description contains a sequence of natural numbers, it also indicates that the numbers are not cut off, from my point of view this is an exhaustive description of the problem, in case of misunderstanding, multiple examples are provided

  • Custom User Avatar

    hello, I apologize for your dissatisfaction, but I do not quite understand what the problem is, could you explain in more detail which parts of the description you did not understand?

  • Custom User Avatar

    The first value there is what your function returns, not the input.

  • Custom User Avatar

    Yes, your returned 1900 is not a century. See https://docs.codewars.com/training/troubleshooting