8 kyu
Grader
6,719 of 14,025Cameron_
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.
Java:
Character
instead ofString
Еще однв достаточно простая задача на условные операторы. Тут надо только с условиями поиграть.
for the C# solutions, I noticed no one used a dictionary...is there a reason?
No random tests??
python new test framework + random tests are required. updated in this fork
Approved
Python new test framework should be used.
More details here and here
Fixed in your fork
Ty, for Kata;)
this Kata is good for beginners good job
this Kata is not good . it's very easy but it's not working with right code
The kata is working fine in JS.
I don't get the score grading. Why score > 1 considered as "F" while score < 0.6 is also considered as "F"?
Kata scenarios can be weird and most of them (puzzle etc...) goes beyond or against human basic knowledges or thinking XDDD
As for me it seems that score always should be lower than 1(1 = 100%). And if score is higher it means that something is wrong, so grade is "F".
Description is highly lacking:
It's really annoying not being able to debug. In ruby it just returns 'Value was not what was expected'.
Fixed
Out of 8 tests, my solution doesn't pass the first one (it's not "F", that's all I know). Is there some trick?? (Python)
print the input (if not already known) and search for the inconsistency between your code and the description. There's a tiny trick there.
That's what I did after I commented, all is well :)
Needs random tests,
Or at least more comprehensive tests. I mistakenly used
round
instead ofint
in my solution, and it shouldn't have passed, but it did.Your older Python solution now consistently fails the random test.
Ruby still missing random tests.
My solution passes the run test but when I try submitting it, it says that "Value is not what was Expected". Please help me out(Ruby)
The test cases have more tests than the example test cases. I suggest outputing (printing) the parameter to the console so you know where you are going wrong and can modify your code based on this.
How can you output the parameter to the console?
I'm pretty much having the same problem. My solution pass the tests but when I submit, It won't accept. Help please (Ruby)
Ruby version of Kata could have included some random tests as well as fixed ones.
It's an issue ;-)
This comment has been hidden.
1.01 returns 'F' Please add it to the visiable test cases so users don't spend allot of time figuring it out.
Yes, this would have saved me a lot of time. All the rest are >=, F is the only one thats just >.
This comment has been hidden.
Hi, when I click run test, it is a success. However, when I go to submit it, it fails. It passes eight tests, and just says the value is not what is expected, even though it returns the right answer. Is this a problem, or just something wrong with my code?
Now it just says unknown error
First off, are you trying to complete it in Ruby or Python?
Also I can't see your solution, would you mind posting it here ? Make sure to mark it as a spoiler.
This comment has been hidden.
I agree. I am having the exact same problem.
Read the description again, a score of 1 should return "A" but in the solution posted, it'd return "F".
Edit: Sorry for the last reply, I never got a notification telling me you replied.
thanks Cameron that helped. It passes now
I'm having the exact same problem, my solution does work with 1 tho, my solution fails for the second test case, it just says "Value is not what was expected".
From a Python interpreter session with my solution:
I don't see anything wrong with this.
There is a trick in description - all the ranges have upper border exclusive, besides the A range. That really confused me - I noticed that when seeing Test cases after gave up, not able to satisy them ;-)
The tests should test more than one decimal
"input" is a buit-in function.
Apologies, I'm fairly new with python and just wanted to try my hand at creating a kata. I've replaced input with score.
I think 4-space spaces indent will be more pythonic.
Alright, thanks! I've changed it.
The code given has a tab insted of spaces
Fixed.