i suggest to change the description (altough it's already understandable), something like this (add new lines etc..) :
Your task is to write a function which takes an array of points and returns whether they form a square.
If the array doesn't contain 4 points, return False.
All points coordinates are integers.
Squares can be rotated using a random degree.
take a closer look at the examples in the description, seems that you are missing a part
edit : i skipped a line in what you posted (remember to mark it as spoiler next time) : try printing the faulty inputs
Modified accordingly, thanks
well said, updated, thanks
glad you enjoyed
usually you got that error if you print too much stuff, check if it's the case
funny!
say the language or run the blank solution to see
approved, thanks
approved, thanks
funny
Really Long Line
This comment is hidden because it contains spoiler information about the solution
i suggest to change the description (altough it's already understandable), something like this (add new lines etc..) :
Your task is to write a function which takes an array of points and returns whether they form a square.
If the array doesn't contain 4 points, return False.
All points coordinates are integers.
Squares can be rotated using a random degree.
i will wait some more but i think i will unpublish this, thanks all for the feedback (i'm not being sarcastic (;-;))
nice :o
take a closer look at the examples in the description, seems that you are missing a part
edit : i skipped a line in what you posted (remember to mark it as spoiler next time) : try printing the faulty inputs
Loading more items...