Ad
  • Default User Avatar

    I'm looking at the C translation, pretty the test suited areto blame. Made a C solution myself, it was consistently crashing on one particular "random" test, after quite a bit of head-scratching and poking with a stick, I found what seems to be a fix - it's calling an assert method with an output format string and 3 strings to plug into it - the complete, 100000-byte bf program, plus both the actual and expected c programs. After dropping those inserted values, all tests pass.

    Not sure if this is the cause of any or all the problems or not. Hopefully a fix will be coming soonish, though!

  • Custom User Avatar

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

  • Custom User Avatar

    So it still fails three months later. Is there a solution to the problem of the servers giving 500s?

  • Default User Avatar

    "This error was caused due to an issue processing the web request, not because of an issue executing your code. You can retry the request." I attempt before and I have error, so I fix my code, I pass all the sample test, but when I attempt, this network error show up everytime. Please help!

  • Custom User Avatar

    The language is C.

    I am printing nothing to the console.

    The solution is not recursive, I do use a loop however. The maximum function depth in my code is 2.

    I allocate the output buffer with malloc and I have tried different values. All sensible values work with the supplied tests.

    Most of the times it works it keeps failing at the large input batch. It passed the first two, but the third not. I tried upping the amount in malloc and it still doesn't help.
    Most of the times, though, I would say 90%, I get the upper error and this one https://i.imgur.com/xuqnUnQ.png

    To me, a person who doesn't know much about the infrastructure of codewars, it seems that the “Attempt” servers aren't really stable with big input or output. I may be wrong, but what should I do to make it work?

  • Default User Avatar

    language?

    Be sure you do not print ANYTHING to the console, because it may produce this type of problems, considering the size of the inputs. Avoid recurcive solutions too, for the same reason.

  • Custom User Avatar

    @Varveyn , Can you check if there's something wrong with the compiler / tester? I have made a solution which passes the supplied tests. But when I “Attempt” it the only thing I get is this:
    https://i.imgur.com/iikigTl.png
    It's an Internal Server Error (500).

  • Custom User Avatar

    It's interesting how many solutions this problem yielded. :) Awesome ones too...