Ad
  • Custom User Avatar

    my please.

  • Custom User Avatar

    thanks

  • Custom User Avatar

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

  • Custom User Avatar

    Ahh, that task is that easy..

  • Custom User Avatar

    Thanks a lot mate, this was very useful.

  • Custom User Avatar

    I was completely inattentive when I confirmed the translation, a day of lack of sleep due to machine learning made itself felt... I hope I was able to correct the translation, if you find any shortcomings, let me know. Have a productive day everyone :)

  • Custom User Avatar
  • Custom User Avatar

    If both vectors originate on (0,0) the two vectors can never be collinear as the[y] are not parallel and touch at (0,0).

    What makes you think the two vectors are not parallel?

  • Custom User Avatar

    Have you considered that maybe this kata is not an introduction to vectors, but an exercise on vectors ( with some light programming thrown in ) ? And in that light, the description is not bad.

    There are other kata that might introduce you to vectors, after which you may find this one less daunting.

    But please don't blame this kata for not being something it is not.

  • Custom User Avatar

    sorry it was my mistake, i didn't write right code. sorry

  • Custom User Avatar

    After checking your solution, I can see that you are printing irrelevant messages to the console instead of returning the Boolean results.

    Write the function collinearity(x1, y1, x2, y2), which returns a Boolean type depending on whether the vectors are collinear or not.

    The example tests also demonstrate that clearly. Also, I suggest you read this before continuing to solve more katas for the sake of better understanding on how things work here. Also, sharing your code with spoiler flag would have been much easier than asking reviewers to find which language you're training on with the relevant code! Kudos ^^

  • Custom User Avatar

    The "View solution" button does not work well and it's not easy to use. To see your solution, I have to a) know what of 13 available languages you attempted and b) I have to solve the kata in this language, which I might not know how to do. It's much easier if you just post your code (properly formatted). Or if you want me to use the "view solution" button, you have to tell what language you use.

  • Custom User Avatar

    tap on "view solution" i hope you can see it

  • Custom User Avatar

    "My solution does not work" is not a kata issue.

    Show us your solution and we will check what's wrong with it.

  • Custom User Avatar

    is there anyone whose code get all tests fixed?? i check my code multiple time and it was working fine for me 😭 what should i do??

  • Loading more items...