Ad
  • Default User Avatar

    Thanks for the tip and the interesting kata! I've worked on this off and on for the last few weeks and it feels good to finally solve it :)

  • Default User Avatar

    Thanks for taking a look. It passes the sample tests in 0.026472ms but now I get the 12 second duration error message. Is my algorithm still too slow?

  • Default User Avatar

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

  • Default User Avatar

    I'm using C# and I have a solution that passes the example tests. However when I attempt the kata it says there were three compilation warnings like:

    /home/codewarrior/fixture.cs(48,6): warning CS0162: Unreachable code detected

    Any idea what would cause this? I am using a second function and I have included a second "using" at the top. All of the code is reachable (as I said it passes the example tests just fine) but I don't know exactly how it is run on the server. Is there something I need to watch out for when working with C# on codewars.com?