Ad
  • Custom User Avatar

    I see errors when I paste your code. I also see you initialize List without declaring its type. IDK if it's required, but when I do, the errors go away. You should start with that.

    BTW, take your time to read those error messages, they're telling you what the problem is exactly, most of the time... Maybe not in java :P

  • Default User Avatar

    did you try it?

  • Default User Avatar

    I agree B1ts. The author could have made this more explicit to avoid confusion

  • Default User Avatar

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

  • Default User Avatar

    Please post the code here. Be sure to mark it as spoiler.

  • Default User Avatar

    So for some reason mine shows an error when I run it on the codewars site in the test case "dabc", but when I try and run it in Eclipse the result is right, even for "dabc". I have no idea why this is happening, I've literaly copy-pasted the code from eclipse to here , I'm pretty sure I've done everything the problem wants and I still don't understand why this is happening, I mean it runs fine in Eclipse for whatever inputs I may put. Can you help me please? I can send you the code