7 kyu
TV Remote
393 of 2,810dinglemouse
Loading description...
Algorithms
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.
little hard, but very very good kata, thanks!
A little bit hard for 7kyu. Many comments have mentioned it before. Is it possible to move it to 6kyu?
Nothing I can do about it. AFAIK It is cast in stone by whoever "Approves" the original Kata.
It might be 7kyu, if this kata add predefined table.
But it will be unfair to previous warriors.
The level does not correspond to 7 kyu, its 6-5 kyu.
great kata!
good kata
This should be a 6 kyu.
Fun Kata! Imo this should be 6 kyu
Fantastic kata! but a bit hard for a level 7. Can levels be changed once they are approved? Or are they set in stone?
No, they can't be changed.
Gotcha, thanks for letting me know.
You're welcome :) (and I agree with you: this is a real rough 7 kyu ;)).
Updated Dart translation (Dart 2.14).
Approved :-)
Nice kata and crystal clear explanations. Thanks!
i solved it in one minute but i think is hard for a 7kyu kata
Awesome kata, thank you, I learned a lot! 🤓
Is there a way to inspect the code used to generate the random words for the tests? I think they're called fixtures, please correct me if I'm wrong.
After you solved then you should be able to press the
Show/Hide Kata Test Cases
button (see top of this page)Right on, thank you again!
what data structure should I use here? Array of arrays?
C# Translation added.Please review and approve~
Approved :-)
I have a question. Would be great if anybody answers. How shall I decide the movement of cursor programmatically ? In the example, I am seeing (for the word 'codewars'),
c -> a-b-c-OK = 3 (horizontal traverse) o => c-d-e-j-o-OK = 5 (first horizontal and then vertical traverse) d => o-j-e-d-OK = 4 (reverse vertical traverse) ..... ...... Hence my question is, how to find the rule for traversing the keyboard layout ? My question is, my code doesn't know which letter is after which letter, in that case how to set up the traversing rule ?
This question addresses the core part of the Kata. To answer this question is to basically hand you a solution!
Try running through some very simple examples by hand. What information did you need? How did you calculate each move?
If you're stuck, consider a short word like "cab" that comes from the first 3 letters. How would you write code for just combinations of "abc"?
Solved it, but would have appreciated having an initial test case that tested for special characters. Initially set it up to solve a 5x5 by converting to character codes and then got dismayed when I had to include special chars.
Sorry, please tell me what special chars are you referring to?
Outside of programming, "words" always means using 26 letters. So I think their complaint is that numeric digits and slashes can be part of a "word" in this problem, even though that's not the normal definition.
I'm guessing they want something like "c0de/wars" or "dingl3/m0us3" as an example.
When I first read the problem, I thought only letters would be used in a "word". But since the other characters were easy to include, I solved it without limiting my code to letters. Good thing, too!
@Spindle - Oh, thanks for that clarification. I have updated the Kata description to make "word" less ambiguous.
Julia translation
Approved. Thanks :-)
This comment has been hidden.
Sure, please put a link to it here to make it easier for me to find it
Dart translation
Approved. Thanks :-)
Great kata :
Only minor point, from the description and sample tests I assumed only letters would be tested. I am not terribly found of surprise tests in the final which go beyond the scope of the sample tests.
Updated the description to clarify that words are made of all characters, not just letters
My algorithm is okay, it works correctly with all these tests on my local machine, but on the service I get other results! Why?!
if you want answers, document your questions, please.
Make sure you're not mutating the original input.
PHP translation, please check and approve :-)
Approved. Thanks :-)
motion to change to 6kyu
+1
Voting does not change anything. Once the Kata kyu ranking is assigned it cannot be altered no matter how much you may wish it.
In any case Kata difficulty is also language dependent - so 6kyu for some language may be 5kyu or 7kyu for another. YMMV.
Why you count the start letter like a "press letter"?
He's not actually counting it, it's just there to show you where it's starting in the example. If you look at the counts in the example, they are one letter less than the number of letters plus OK.
@dinglemouse, C & C++ translations ready.
Both approved. Thanks!
This comment has been hidden.
Hi @clcraig - Thanks for offering more translations...
No. As always please translate my Kata functionality (and tests) exactly as-is.
The keypad of this Kata has no ability to change to upper-case, and only words which are possible to enter are tested.
FYI - A follow-up Kata (with a different keypad allowing mixed case) is coming soon. Stay tuned :-)
This comment has been hidden.
Approved :-)
Man that was odd, I just did the Ruby, was about to make a suggestion to make it print the outputs in the random tests as yours normally do and this translation didn't. Then I look at the test suite which does it, run mine again and it shows them. I just experienced the mandella effect.
python translation!
;)
Approved :-)
not even a word with uppercases!? ;o I was so sure you'll do it I put it in my code in the first place! x)
It's already planned... next week I'll add a
SHIFT
key to the keyboard :-)This comment has been hidden.
This comment has been hidden.