Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
yes
please, wha is OP??. i have the same issue
That's not your sole problem, but your
.add
method should return a new Vector (or throw an error), not an array: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
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
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
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?
The first value there is what your function returns, not the input.
Yes, your returned 1900 is not a century. See https://docs.codewars.com/training/troubleshooting