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.
Did the triple backticks. It looks good - thanks.
Hi mrhatted,
The description says "sorted lexicographically" - when comparing two strings, look for the first non-matching character. The sorting order is determined by which is earlier in the alphabet.
For example:
"b q ...." < "k b ....",
becauseb < k.
"n k n ....." < "n r n ....",
because the first charactern
is the same, so we look at the second:k < r.
"q n b b ...." < "q n b n ....",
because the first three characters are the same, so we look at the fourth:b < n.
Does that help?
brodiemark
I added two examples of large values to the sample and fixed tests in all the translations.
Thanks!
Will do when I get a chance, probably Tuesday.
The condition "c to be less than int max" is really redundant, since all variables are ints.
I did add the following text to the description, which hopefully will clarify things:
Note: Although a, b, c are all integers, it's possible that their squares can exceed the integer bound in a statically-typed language. Such solutions should be included.
Looks good - thanks!
Hi eurydice5717,
I believe I have fixed the issue. Please try again and let me know.
Regards,
brodiemark
I was trying to highlight the two Wednesdays. Removed it.
I moved it to the bottom, and changed the text, but shouldn't it remain in the description rather than being in discourse?
done
Thanks for the feedback - much appreciated!
Thanks! Sorry it took so long.
Hi mr1cz,
I believe I have fixed it in the new translation. Please check if your solution passes.
Thanks,
brodiemark
I must say I'm not sure what's going on. Both the Python and C# versions expect ['Q']. I don't know why the Java one expects ['K'], the code is very similar. Also, it seems to be the only test case with the wrong result. Another mysterious fact is that somebody else submitted a Java solution which was accepted, so they also got ['K'].
I thought it would be a easy fix, but it's not. Maybe I'm overlooking something simple, but I don't know. I will continue to work on it, but I'm not sure how long it will take. I really apologize for this. And unfortunately, there doesn't seem to be any way of temporarily unpublishing the translation while I work on it.
Strange - I will take a look
I prefer 6 - more people will try it.
Loading more items...