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.
(The local variable being, in this case, the declared argument.)
You definitely should remove the comment in the initial code
// points is an array of points with at least two points
. Because it's not.Thanks, it's much clearer now. :)
I don't get this test :
The description says "Any encoded characters that should not have been encoded for the context should not be decoded in that context.". The character "a" should not have URI-encoded so why is it URI-decoded ?
Perfect! :)
EDIT : Also, you could delete the part that says that days must not have leading zeroes, cause they won't have.
You may consider using another example in your description for the expected date format.
9/5/2014
can lead to confusion as we don't know which of 9 and 5 is the day or the month. The dates shown in the examples are more explicit, because of the13
obviously. ^^The tests are fixed now. Thank you :)
Ok, I got it.
Your second test does not like when the array passed as argument is modified in place... I had to make a copy to get it passed.
(Maybe you should make a copy in the test, or specify in the description that the input array must not be modified)
I was a bit confused when I realised that a strike on the 9th turn would actually take into account the score made on turn 11th, which is an extra ball... The sentence "Points scored using these extra balls only count once." in the description may be a bit misleading.
This makes it more clear, thanks. I will think about it.
Description says "Given an array of n x n", therefore the test should not send
[[]]
which is an array of 1 x 0 ...So the input is always a valid big triangle made of smaller triangles ?
You should add a test that don't use the alpha variable, to force the use of binding.
I'd suggest something like :
I was about to click "Clever", then I saw the "Throw an exception" part. This is really ugly.
What would be the result if we remove the upside down triangle in row 2 in the example given in the description, for example ?
Loading more items...