Draft
Video Digest
Loading description...
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.
What is function of
digest
in initial solution? Should that be modified? What is function of randrange and seed in this context?Please specify this in description.
Please use new python test framework.
Done!
Note: The example test that codewars provides shows
import codewars_test as test
on the first line. This results in an unknown module error. Commenting out this line solves the issue. Note 2: This kata has been around for 4 years at least and still in beta. Not sure why I bother fixing it if it's going to remain in beta.For future reference: the line
import codewars_test as test
is necessary in Python 3.8 but does not work in 3.6. When you add it, make sure that 3.8 is selected.This comment has been hidden.
I just saw the tag "requierment comprehension"... ;)
Well, why not. But I find the thing a bit weird. I'm like you about my performance tests, on this point! ;) (btw, I removed the 3 of them in my kata, you should be able to submit, now)
This comment has been hidden.
This comment has been hidden.
When I wrote this kata, I wanted to describe what was happening at the decoding end, and the challenge was to invert this to produce what was done at the encoding end. Now, I can follow your advice and describe what is done at the encoding end, which would indeed make the kata much easier to solve, but then I would be giving away part of the solution. So I ended making the description of what is happening at the decoding end very precise by providing the code for that part and asking for the code of the inverse function. I have removed all indexing from the description, thereby avoiding confusion.
Very nice idea!!