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.
This one is more like a math problem, of course regex might help.
If it's the problem of not understand the description, please let me know.
You're just supposed to solve the kata. How you will do it is up to you.
To be sure you understood correctly: one call of
... It has to be able to differ in execution time each time its called based on the message in the buffer. The decoder will execute
beep
is equivalent to one-
or.
orbeep
multiple times per message. The decoder will continue to callbeep
until one execution ofbeep
takes a very small (no) time to excecute. Then the times measured will be translated back into the message.So first of all both functions dont need to return anything ^^. You are writing a class
Morser
.add_to_buffer
will add the message to the buffer of theMorser
without returning anything.beep
is a bit more tricky to understand. After the buffer is filled,beep
will be called multiple times. Each time its excecution time is measured. Based on that aDecoder
class will recreate the initial message if possible.TLDR
beep
does not return anything but should take a certain amount of time at each excecution.Ranks are assigned during beta process by voting. That's what people have voted for.
It's one of those problems that seem trivial if you know what you're doing and impossible otherwise.