6 kyu
Ka Ka Ka cypher - words only vol 1
473 of 1,107dcieslak
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.
C# tests generate warnings -->
tests/Fixture.cs(38,51): warning SYSLIB0023: 'RNGCryptoServiceProvider' is obsolete: 'RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.'
Yes, I did in c++.
Curious what country the OP is referencing?
Python fork
Approved!
6kyu? bs
There is
using namespace std;
in C++ Preloaded section which should be removed. See: https://github.com/codewars/content-issues/wiki/List-of-Cpp-Kata-to-UpdateFixed
My code is passing all the tests, but I cannot complete this kata because of an error. I am not sure how to go about resolving it. Here is the output from the last time I ran the tests:
Time: 636ms Passed: 30 Failed: 0 Exit Code: 1
main.rb:9:in
kacokadekame': undefined method
[]' for nil:NilClass (NoMethodError) from main.rb:4:intest' from main.rb:58:in
block (2 levels) intimes' from main.rb:55:in
block inblock in describe' from /runner/frameworks/ruby/cw-2.rb:46:in
measure' from /runner/frameworks/ruby/cw-2.rb:51:indescribe' from /runner/frameworks/ruby/cw-2.rb:202:in
describe' from main.rb:54:in `It fails on an empty string. Check the output what is expected and what you have returned.
Thank you. I appreciate your response. It's frustrating that that didn't result in a failed test. Every time I ran my code, it said all tests passed. It should've shown a failure when the input was an empty string so I could've done some troubleshooting myself.
Co prawda kate napisalem w czasie dlugosci Toccaty ale chyba sobie zartujesz ze ktos bedzie hejtowa£ goscia co zajmuje 35 pozycje sposród miliona ;-P
This comment has been hidden.
Ok. I hope it's fixed :) I don't know Ruby. I only acepted someone's translation. But I tried my best to fix it.
Thanks. I had resubmitted the solution. Great kata by the way. Got to practice regexp.
This Description example treats
y
as a vowel. The Submit random tests treat it as not a vowel. The Example tests and Submit fixed tests are conveniently silent on this point.I'd suggest changing the Description example to
ka thi ka s ka bo ka y ka i ka s ka u ka gly
.It's introduction (really people speak like that) and not a real task that states clearly what you should do. But Ok. You are second person who doesn't like it. I will remove it :) after I will come back from a pub ;P
I don't mind that it's multiple words. I just think you should be consistent between this example and the random tests in what is considered a vowel.
Ok. Sorry I didn't think clearly yestarday :P You are right. I modified it to your correct way :) Thanks!
BTW. In the real
ka
language, there are 8 vowels andy
is one of them. But it's a different story not related to this kata ;)Now it's broken - I don't know the state from before your fix, but the random checks expect 'y' to be a vowel, but the description has no mention of that, in fact it explicitly states otherwise.
Ok. It was bug in Ruby translation (not made by me). Anyway I fixed it. All solution are now obsolete for Ruby. Sorry for troubles and thanks for pinpointing it!
What does it make a Kata to go out from Beta status? What is the reason for this one why to stay on the Beta status?
Currently it says:
Beta Status:Testing & feedback needed
Based on the average difficulty rating (yellow) I think you just need a few more upvotes, to about 12.
Thanks! I am almost sure some of my other katas were accepted with only a few of solutions ;) Does the process of approval is automatic?
A moderator (6k power user) is required to manually approve the kata.
Which usually translate to "immediately when one notices your kata" :P
You may want to change the description example given that every test case is a single word whereas the example is a group of space-separate words.
Thanks for your suggestion. I added additional info to input description that there is only 1 word to convert. Basically I had idea to create a couple of katas that base on
ka
and this one's supposed to be the first one. But it seems there is no so big interest. So the other ones (more difficult) stayed only in my head ;POk. I have added it to my tests. I hope it haven't invalidated all solutons ;P
I was going to ask why
ka
should returnkaka
instead ofka
that complies with all the conditions. Maybe it's to simplify the solution, could you explain it?The first rule:
And
ka
doesn't start withka
? Maybe I'm confusing with and from.that means, encodeed word should has a prefix ka, then deal with the real word. otherwise, two words
kaa
anda
will be encoded to the same resultkaa
.Now I go it, thanks.