Late reply, but since it seems you're still active as of June 2022:
The goal of this kata is to determine which of the (26) possible shift parameters is the "most likely correct" one, for a given input of an encrypted message string.
Basically, if you did the cryptoanalysis by hand with a pen and paper, you would:
take the encrypted message string
try all 26 keys/shift parameters to decrypt the string and see which of the 26 resulting messages "most looks like" it is written in english language.
The kata asks you to do this, and return the decryption key/shift parameter that gives "the best result" in step 2) above.
i ran my pure python solution 100 times with random input to simulate the acceptance test on my computer and it took 2 minutes. i read up on numpy and got it to
work with it and the same test took just 1 sec. THe same speed as a c version of the challenge.
Creating a translation for a kata is definitely a good choice before creating a new kata from scratch. It will make you familiar with authoring process, reviews, and maintenance of Codewars content.
Unfortunately, there's no really good documentation on translating kata, but there is something what could be useful:
There are Content authoring guidelines which every type of content (kata, translations) needs to fulfill to be considered of good quality. Since many of the guidelines are common for both creating a kata and creating a translation, they are not really separated and can be useful for both authors and translators. Be sure to read through all parts of the guidelines to get familiar with the ideas.
One section of abovementioned guidelines related strictly to translations. This could be of the most interest for you, and it contains links to other, related parts.
There is a tutorial related to authoring in C, and another article on the tricky aspects of memory management. Please read through them carefully and consider remarks collected there. I personally think that many existing C translations do not serve as good examples, because IMO they are of, umm... disputable quality. Yeah, let's call it this way ;)
There is no general, click-through tutorial on translating a kata, and there is no tutorial for C++ nor C#. They are queued, but not yet written. But in case of any questions, you can always ask for help. You can also explicitly poke Unnamed (@error256 on Gitter, very active C and C++ reviewer) or me (@hobovsky on Gitter) and ask for a review, but I believe some other users will be eager to take a look too.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The hint would be "exponentiation laws".
Late reply, but since it seems you're still active as of June 2022:
The goal of this kata is to determine which of the (26) possible shift parameters is the "most likely correct" one, for a given input of an encrypted message string.
Basically, if you did the cryptoanalysis by hand with a pen and paper, you would:
The kata asks you to do this, and return the decryption key/shift parameter that gives "the best result" in step 2) above.
Hope that helps a bit!
suiiiiiiiiiii
See rampdedlizer post above.
This one is giving me trouble in c. I'm passing all the tests but getting an access violation.
i ran my pure python solution 100 times with random input to simulate the acceptance test on my computer and it took 2 minutes. i read up on numpy and got it to
work with it and the same test took just 1 sec. THe same speed as a c version of the challenge.
In case you're talking to me, the answer is no. I'm a Computer Science student that actually knwos math
Browsing through the solutions in the languages you've already completed, you'll find answers :)
This comment is hidden because it contains spoiler information about the solution
I personnaly think it's quite an easy 6 kyu kata. The description is clear and gives you an equation to use in order to do the required calculations.
Suppress the "`" at the end of your code...
I tried your solution and get (after suppressing the "`"):
Please verify your code before posting issues and take note at the top of the page of how many guys passed the kata in your language.
Creating a translation for a kata is definitely a good choice before creating a new kata from scratch. It will make you familiar with authoring process, reviews, and maintenance of Codewars content.
Unfortunately, there's no really good documentation on translating kata, but there is something what could be useful:
Old katas have bloated ranks. In other words, what's now a 7 could have passed for a 6 or even a 5.
Loading more items...