Ad
  • Custom User Avatar

    Your code has wrong syntax.

  • Custom User Avatar

    Sorry, missed this one: post under the Java translator comment here, so that he can be notified :)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Language and, possibly, code with a spoiler tag?

  • Custom User Avatar

    Whatever if condition I place in my code produces an "illegal start of expression" error! Can anybody help me?

  • Custom User Avatar

    Erroneous letters are from n inclusive to z inclusive.

    so number of erroneous letters and number of correct letters should be correct, right?

    Not necessarily, one error on erroneous ones can compensate one corresponding error on correct ones...

  • Custom User Avatar

    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???!!!!

  • Custom User Avatar

    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!

  • Custom User Avatar

    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?