Ok... so I took e, d, f. Now I XOR e with d ??? 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
Thanks to the Codewars community for this brilliant kata — a fun deep dive into hex, binary, and XOR logic!
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
???
Loading more items...