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.
Second and third sample tests seem to be wrong :
[(-2, 5), (4, -1), (4, 11), (10, 5)]
[(260, 120), (264, 92), (264, 148), (280, 60), (280, 180), (300, 40), (300, 200), (332, 24), (332, 216), (360, 20), (360, 220), (388, 24), (388, 216), (420, 40), (420, 200), (440, 60), (440, 180), (456, 92), (456, 148), (460, 120)]
There are many ways to sort an array, you have to be explicit.
Use katex for math formulas :
Description has be rewritten to correspond to actual quality standards.
In light mode, your example is hard to see.
I have several questions regarding this kata:
You state that our task is "to find every integer point that lies on a circle's line". I assume that by "circle line" you mean that we need to find every point on the circumference of the circle where the value of "x" and "y" are both integers. Can you please confirm that my understanding is correct?
In your solution window you provide:
def draw_circle(x, y, r, ind)
return []
You provide us with the value of "x" and "y", a single point on the circumference of the circle. If my interpretation of your instructions (see #1 above) is correct, how can we solve this kata without knowing where the center of the circle is located (i.e., "h" and "k")?
Thanks in advance for the clarification!
Encript => Encrypt; Decript => Decrypt
how does the tester expected them to be spelled?
I don't know whether it was intentional but the "encript" and "decript" function names are not spelled correctly.
Also note that the test cases work, when run separately by hitting the "TEST" button. When I define "alphabet = []" and hit the "ATTEMPT" button, the encript and chained fixed tests fail and the decript random tests also fail. In all cases however, your kata is reporting that the decript tests are successful.
1B has been sight at some point, but not during the entire night.
Switches 1A and 2B 4 times. And the answer should be:
[ '1B', '2A' ]
BUT in "observations" there is['1B', 3]
. That is, a person appeared in the window(with a light). He shouldn't be in the answer. The answer should be:[ '2A' ]
.Did I misunderstand something? Or is there a problem with my solution?
The issue has been resolved. I enjoyed your Kata.
how about now?
For the Coffeescript version of this Kata, I am receiving a "ReferenceError: flattenArray is not defined" error for approximately 10% of the Random Tests.
The Coffeescript version is definitely broken. It appears that when the "Random Test Cases" are performed, the preloaded "words" array only contains one word ([ "ZONES "]).
Has anybody tested the performance of this ? it feels to me like recursivity would be less efficient than a regular loop here
There appears to be a problem with the Coffeescript version of this kata with respect to the Random Tests. I receive the following error message "RangeError: Maximum call stack size exceeded" when the Random Tests are performed. If I copy the first random test arguments and make a new Fixed test using those exact same arguments, the error message is not generated.
This was probably one of the simplest ways to do it without digging into regex. nice job.
Loading more items...