Ad
  • Default User Avatar

    I just tried a few different solutions and all worked fine. Try again but before that verify your code (infinite loop or...).

  • Custom User Avatar

    Javascript. And sorry, I pasted the wrong error message. The correct one was this:

    The server attempted to execute your code but there was an issue with the request. This should be a rare issue. Please try running your code again. If the issue persists, please contact us.

    So not a timeout issue, but a issue with the request itself as it seems. I tried running the same code on the server multiple times now, every time the same message.

  • Default User Avatar

    Please which language? A request timeout is not the fault of the kata (so it is not an issue) but a problem - as it is said - of server load at CW. Post a bug if you want: https://www.codewars.com/topics/bug-reports or be patient and try later:-)

  • Custom User Avatar

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

  • Custom User Avatar

    Try it without the added quotes. The quotes are just for providing a String literal (like in the example). Your variable 'd' is probably already a String, so you can just use it in the get method as-is. So just leave out the first line of your code there.

  • Custom User Avatar

    I unfortunately cannot see your reply, as I don't have solved the kata yet, and your reply supposedly contains a spoiler. What did you write, if you don't mind me asking?

    Edit: After replying I saw your comment, and found out what the problem was.

    The issue is that i forgot to check for an empty string (testFixedStrings, 6th call there), but the test just failed with a "0", no further info. It would be nice if there was some feedback on why that one fails.

    Thank you for your help, AkyunaAkish!

  • Custom User Avatar

    I have tried to solve this kata in Java, and I was quite sure my solution would work. But I get a "Test passed" on the second and third test, but just a "0" with no info on what's wrong on the first one. Looking at an output via System.out.println does not show anything that would anything else than the expected solution, but I don't know how the tests are setup. Is there a way to see the expected output of the tests?

  • Custom User Avatar
  • Custom User Avatar

    I like recursive solutions! Nice job