Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
describe"<This message should describe the categories of test groups inside this block>"doit"<A short message describing this test group>"doexpect(...).toeq(...) #Assertions#Or Test.assert_equals(user_response, reference_response)endend
The "encoded" example is incorrect: "ArNran u rstm5twob e ePb" (24 characters even though it's a 5×5 square).
It should be "ArNran u rstm5twob e ePb" instead - note the extra space after "wob".
Edit: it looks like the markdown parser is collapsing whitespace even within the code blocks, hence the error. Seems to work when using a non-breaking space character, " ".
Enabled in this fork
While concise, this solution should not be considered best practices given its time complexity of O(n^2)
#11b30/3q6:0z:vV
nice kata
great challenge.. overthinking kills ..
Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
This comment is hidden because it contains spoiler information about the solution
The "encoded" example is incorrect:
"ArNran u rstm5twob e ePb"
(24 characters even though it's a 5×5 square).It should be
"ArNran u rstm5twob e ePb"
instead - note the extra space after "wob".Edit: it looks like the markdown parser is collapsing whitespace even within the code blocks, hence the error. Seems to work when using a non-breaking space character, " ".
Ruby translation kumited -- please check and approve (note: author is inactive)
would not count method run big O of n times?
Thanks a lot
Fixed.
im not sure what you mean by randomized test
is it possible for you to edit my kata?
thanks for the help
Just replace
decipherMessage
withdecipher_message
.Also please add randomized tests.
I am relatively new to programming and I'm not sure how to do that. sorry
Loading more items...