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.
Approved
Prolog translation
Approved
Approved
Scala translation
CoffeeScript translation
Description does not mention how to handle empty strings/strings with no hex characters.
(At least in Python this expects
0
to be returned).Approved
Description doesn't mention that we have to convert hexadecimal characters into decimals first.
This comment is hidden because it contains spoiler information about the solution
One of the worst kata descriptions in the history of kata descriptions! Until I read the discourse I had no idea what I was actually supposed to do.
What does XOR mean?
Ok... so I took
e, d, f
. Now I XORe
withd
??? How does that work? It only works if you ASSUME these characters still have HEX meaning.Whatever, I'm not gonna argue over semantic details. All I was trying to say was that the instructions looks incomplete / confusing. That sentiment is supported by comments here on discourse. But as I said, if you think it's fine, then it's fine. Good night :P
???
The description only says to take characters a..f and XOR them, it doesn't even mention hex (or any other, say.. ordinal) conversion (I got ahead of myself on my post).
But fair enough, as long as the neccessary information can be found here on discourse, we can leave it at that.
Loading more items...