7 kyu
GA-DE-RY-PO-LU-KI cypher
807 of 2,825dcieslak
Loading description...
Fundamentals
Ciphers
Cryptography
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Oh, this one was really enjoyable — it got me practicing DRY principles and algorithmic thinking a lot.
Loved the process, thanks for putting it together! 💻🧠✨
Lua translation !
Approved by someone.
Rust translation
Approved by someone
python generates an error on the testing code: File "/workspace/default/tests.py", line 9 return ''.join(translation.get(char, char) for char in message)") , "GBCE", "Expected "GBCE") ^ SyntaxError: unmatched ')'
I don't see that error with the initial code, are you sure your code doesn't has an unmatched parentheses?
I've solved the kata in Python and the error didn't appear. Not a kata issue.
Go Translation
Approved
This comment has been hidden.
python new test framework is required. updated in this fork
approved by someone..
C# tests generate warnings -->
tests/Fixture.cs(40,51): warning SYSLIB0023: 'RNGCryptoServiceProvider' is obsolete: 'RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.'
[TypeScript] The types for the TypeScript translation are incorrect.
String
represents the gloabl string object, it is not the right type to use for a primitive string.string
should be used instead for the parameters and return type. See https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#the-primitives-string-number-and-boolean and https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html#general-types in the TypeScript handbook.Ok... Are you talking about an issue in the initial solution? It doesn't work by default ;P But sure, changed.
coding and decoding functions are the same...
C++ version generates warnings.
Fixed
This comment has been hidden.
This comment has been hidden.
Sorry, my bad, you're right.
str
now changed tomessage
:-)I think the random tests in Ruby are expecting the input not the output.
Or maybe you are mutating the string in place?
Thanks, I'd forgotten that mutating the string in place can lead to failed tests.
For now I will just publish the Crystal translation, but if you want a Python code, I think I might go with something else in a spoiler, then, mh...
Python translation, please check and accept :-)
Ah, beaten by a couple of hours, if only today I was a bit more free T_T
Yeah, Ive been off work today so been doing some translations. If you have done a Python translation, then publish it because I bet it's more efficient than my solution :-)
This comment has been hidden.
And apparently the author does not like your Python translation :D
Edit: oh, you are from makers, I see! Did we ever met in person? And we certainly must know a lot of people in common... Man, I am missing London so much now T_T
I like his translation:P But for some reason when I clicked on the link previously it showed me the Crystal translation instead.
@GiacomoSorbi, I did the remote Makers course so have never been to their campus :-) I didnt realise you had done the course too :-)
I didn't actually, but I know plenty of formers alumni (which on average have a pretty solid level) and have been there multiple times for events.
Ruby translation, the only problem is that it's far much easier to solve in Ruby so I'm not sure if you want to accept the translation.
The easiest solution is usually the best one :) I approved your transalation.
No example test in C# :-)
Thanks! It's added.