Ad
  • Custom User Avatar

    Damn, I rushed this code, but good job using switch cases !!!

  • Custom User Avatar

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

  • Default User Avatar

    Producing right answer for some cases and wrong answer for other cases doesn't seem concerning to me. That's normal for incorrect solutions.

    all possible scenarios

    well, the tests are pointing out some scenarios where wrong answer is being produced. did you test those?

  • Custom User Avatar

    I have tested my code with all possible scenarios and consistently received the expected results. My concern is that while the code runs perfectly in my IDE, it fails upon submission. I’m curious if anyone else has experienced a similar issue. Hope that clears it up for you :)

  • Default User Avatar

    You're phrasing this a bit oddly - "the same problem" - yeah, other people have written incorrect solutions and have failed tests. But knowing whether other people have failed tests, that's not useful information, so you probably mean something other than what you said?

  • Custom User Avatar

    Java: I have done this problem on an IDE and it runs perfectly. I've inputed all different scenarios, and I still end up getting the expected result. My test over here passed, but when I try to attempt, I am getting an error. Is anyone getting the same problem by any chance?