You need to sign in or sign up before continuing.×
6 kyu
Collaboration Station
62 of 483jhancock
Loading description...
Fundamentals
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.
In C# && JS, for
n <= 0
, the output should be an empty list / array instead ofnull
for consistency with other languages"All other characters are replaced with dashes."
Isn't space a character too?
Sorry. I was worried that this might cause confusion. What I meant by "All other characters" is the following:
Each character in the unencoded message will be sent to exactly one friend. So, in the example "You are all sexy" (with 3 friends), 'Y' goes to friend 1, 'o' goes to friend 2, 'u' goes to friend 3, ' ' goes to friend 1, 'a' goes to friend 2... etc.
The dashes represent, for each friend, a character that was sent to a different friend. That way, friend 3 knows that there are 2 characters before 'u' because his letter starts "--u".
I hope that helps.
C#-Translation needs some random tests.
Excuse my ignorance, but what exactly do you mean by random tests?
Hi jhancock,
i mean the test cases with a random input value.
Added random testcases
C++-Translation kumited!
Please check it and approve. Thanks! ;)
done. thanks
Very nice kata! Thanx!
Give us more of this stuff! :-)