7 kyu
Help Bob count letters and digits.
516 of 5,597user4790725
Loading description...
Strings
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.
Хорошее задание на цикл и условный оператор. Для начинающих.
imho should be 8kyu
Ranks won't be changed. Both 7 and 8 kyu are beginners katas I don't see why this one can't be a 7 kyu.
Полностью согласен
No random tests in C#
Should mention that only ASCII letters count (eg., [A-Z] and [a-z])
added
Umm, you haven't?
These letters are also considered as lowercases:
And the following are their uppercase forms:
do verify ~~
Okay, I can see it now!
This comment has been hidden.
This comment has been hidden.
I would definitely recommend you just use the CW setup... after all, the tests you gotta pass are here. As for your code, you just need to check the directions again.
I see it now facepalm xo, thanks !
TSError: ⨯ Unable to compile TypeScript: solution.ts(2,10): error TS2531: Object is possibly 'null'
I can't replicate this. Post your code here, marking it as spoiler and using proper formatting
No random tests in ruby
C translation kumited
Julia translation
Who cares how the function is called? These should all be removed.
Done.
.
need tests with underscores in the input (they shouldn't be considered letter or digits and many solutions are matching them)
Added for most languages.
CFML, Prolog, JavaScript and TypeScript translations kumited. Please approve in this order. (author is gone o_O)
Next time you do multiple translations and you change the description in them, just only modify the desc in the last one.
Wasn't planning to do more than 1 :P I thought I could just add onto the previous translation text, and it would work, but apparently not...
This comment has been hidden.
Can you please paste here your code and mark it as spoiler? Thanks, suic
This comment has been hidden.
Hi, this is a fair point. The original kata isn't specific enough about encoding i. e. if it's UTF-8 or ASCII (eventually what range of ASCII). I simplified the random test generator (as this is a 7 kyu kata). Now your code should pass.
Regards,
suic
Hi, thanks for help, I'm afraid that it's still failing in many of test cases like: "\SUB", "\r", "Ky\ACK)>", "\t", "9\SUB"
This comment has been hidden.
Haskell Translation kumited. Please review and approve. Thanks, suic
Reviewed and accepted. :)
Ruby-Translation kumited.
Please check and approve. Thanks
Your translation is accepted :)
Java translation kumited ;)
Sorry for the lack of response. Can you post the link to your Java translation? i can't find it.
Hi, Here it is : https://www.codewars.com/kumite/581f5db9126757a1290002e4?sel=581f5db9126757a1290002e4 No worries for the delay :)
C++-Translation kumited.
It is approved and thank you! :)
Maybe you should watch in the "test cases" from other katas, that you have solved, to learn how to create better tests.
Choose "Show Kata Test Cases" in the "Discourse"-Tab.
Use "Assert.AreEqual" for your tests instead of "Assert.IsTrue"!
This comment has been hidden.