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:Seems tests are broken for js:
typeError: a.add(...).equals is not a function
Also, throwing an error is not supported here for JS we can throw new Error() but its ignored by the tests
This is a rather confusing challenge, its not at all clear as to the entire parameters as the tests, dont provide any extra info apart from random failures.
OP fixed it
Works in node console returning false for over 140, but fails tests here
I dont have an example, as I mentioned previously these are merely rhetorical queries, not examples, I suggest it remains the same for now, as there are a number of comments here which are abvle to provide clarity.
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
Whilst I thank you for that edicational aside, I feel you have somewhat failed to grasp the scope of my confusion. It was nothing to do with any such pedagogical issues, it was entiely a communicative and semantic problem. The challenge problem was clear and precise, however, again in my opinion, I felt that the approach was rather obscured in the description, this is the core of my issue, and makes no assumptions about creativity or any such facet, merely a slight obfuscation due to language.
I have gone through te examples ans solutions, having forefitted the challenge, and now understand it better. My issue was not personal in the slightest, though you appear to have taken some issue with it form the rather defensive nature of your reply. This was certainly not my intention. I merely provided an opinion on my reading of the challenge.
it seems to me that an important fragment of the condition was missed, the numbers must be consecutive , and the sequence of natural numbers is x , x+1 , x+2 and so on
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
OK, thank you
after a long discussion in discord, the community unanimously came to the conclusion that the condition does not require improvements
Loading more items...