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.
There are no random tests.
Actual tests depends on user code to split the two parts into methods with specific names:
This has to be one of the worst kata descriptions I've ever seen. Completely illegable.
Steps c and d are clearly the most difficult in the task ((NOT a) shift left by 2 bits)), I think the examples should give the expected value for c, not just for a and b.
b := sum of every difference between the consecutive characters of the input : Does it mean "sum of difference of ascii values"?
if 126 <= sV < 127 then
should be replaced withif 126 <= sV < 128 then
Consider changing the Description text to the following:
"""
The password is sent through an electrical wire and has hardware support to decrypt and encrypt the code.
You know that how the encryption works, but you need to figure out the xor value to decrypt the code. You have collected many of the encrypted passwords from a recycle bin and must now figure out the XOR value.
The code, is encrypted in the following way: The code is subdivided into 8 bytes. The each byte is XORed with some value between 0 - 255. Then reverse order of the bytes; change the endianness. Finally, each bit will be sent through a NOT gate; 1's compliment.
For example, if the code is 2. The table below shows the value being subdivided.
"""
The line, "Then reverse order of the byte." initially lead me to believe that you wanted each byte mirrored instead of changing the endianness of the number.
Hi,
I don't understand this line:
shouldn't it rather be?
and if so, what are you shifting? a? b? other?
MMmmm... Or is it rather:
?? (btw: signed or unsigned shift?)
Just a bit more here...
But I think you misunderstood the purpose of codewars. Currently, to do your kata(s) I would have to dig on my own outside of the website to try to understand what you're asking for. Considering that the first (and only for now) person that has completed this one ranked it as 8kyu and assuming that it's at least not so far away of the real rank, your kata "cannot work". Easy katas are normally about educational purpose, so clear goal, clear description, minimum to seek out of the description. Right now, this is fully the opposite.
Your kata might be very interesting and have very well built tests, you'll have constantly grudging comments if you let it that way (by the way, if you're kata has a to low statisfaction rate (currently 0% !), it will never go out of beta. The problem is that if you modify it later, people that have down voted it won't see the modifications, so won't change their vote, so you're kata will never leave beta process).
There's some work to do (on both katas!) ;)
Well, that does not begin the better way: reading the description only, I have NO IDEA of what you're asking for. Might need some clarifications there...
Let's see the example tests, now...