Retired
Character Frequency (retired)
3,638 of 6,074MysteriousMagenta
Loading description...
Fundamentals
Strings
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.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/110.
Please join the discussion to help us identify duplicate kata and retire them.
Retired.
This is deffinetly not 8 kata... 7 or even an easy 6 kata.
The result is not need to be sequential!!! LOL
7 kyu
Agree
had to think a bit but it was fun
This one was evil. loved it.
This comment has been hidden.
Please, mark you post as having spoiler content next time, and it worked for me.
For python:
Test case and description is wrong. Resulting dictionary starts with 'a' and ' ' and I couldn't figure out why. When I click attempt all test cases follow the order of the appearance of the characters in the message.
So, almost trew my computer out of the window. 'set' in Python 3 scrambles the letters differently everytime I run it. For Python 2 it is stable. And I finally know where the order is coming from.
This problem should be limtited to Python 2 only.
Item order doesn't affect equality and there's no result order requirement here.
see my comment
This is a great kata for teaching basic work with objects. This basic counting task is a part of many more complex katas. Thanks for providing it!
This comment has been hidden.
A closing paranthesis')' need to be put before opening brace '{' on same line of if.
if (dictObj.hasOwnProperty(letter)) {
You need a closing parenthesis on the if statement.
If it's any consolation, I just made exactly the same mistake in my first attempt at the solution! (Great minds think alike.) One of my students is currently learning Python and so happy that he doesn't have to deal with all of these symbols in the syntax :-)
Haha it is! Thanks everyone for your help!!
Nice Kata!
translation to JS ready :)
In the test case: the space amount is incorrect, it's three and it should be two.
I think this Kata is more suited for a 7kyu. Basic understnading of dictionaries and loops.
This Kata is pretty much a small part of this kata: http://www.codewars.com/kata/character-frequency-1
With that kata being a 6kyu, I don't think it merits being in the same difficulty level.
This comment has been hidden.
This comment has been hidden.
There is a way of course.
You should probably share how with the class, then.