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])
    
  • Default User Avatar

    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

  • Default User Avatar

    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.

  • Default User Avatar
  • Default User Avatar

    Works in node console returning false for over 140, but fails tests here

  • Default User Avatar

    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.

  • 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

  • Default User Avatar

    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.

  • Custom User Avatar

    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

  • 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

  • Default User Avatar

    OK, thank you

  • Custom User Avatar

    after a long discussion in discord, the community unanimously came to the conclusion that the condition does not require improvements

  • Loading more items...