Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Your code has wrong syntax.
Sorry, missed this one: post under the Java translator comment here, so that he can be notified :)
This comment is hidden because it contains spoiler information about the solution
Language and, possibly, code with a spoiler tag?
Whatever if condition I place in my code produces an "illegal start of expression" error! Can anybody help me?
Erroneous letters are from
n
inclusive toz
inclusive.Not necessarily, one error on erroneous ones can compensate one corresponding error on correct ones...
Thanks for your reply. The thing is I am calculating this fractoin as (number of erroneous letters)/(number of erroneous letters+number of correct letters). So if the test shows that my denominator is right, so number of erroneous letters and number of correct letters should be correct, right? So why is my numerator wrong???!!!!
The denominator should just be the length of the string. The numerator will be incremented by 1 each time you see a character that is greater than 'n'. Hopefully that helps enough for you to solve this one!
My code passes the first test but for the second round it fails for both cases. My problem is that the denominator is correct which is the summation of correct and erroneous letters but the numerator is wrong!(less than what it should be!) Can you help me figure out mmy problem?