Ad
  • Default User Avatar

    .

  • Custom User Avatar

    Not an issue

  • Custom User Avatar

    That's because you hit stack overflow error (obviously because you tried to implement the factorial recursively), and in CW the C# test framework incorrectly reports all stack overflows as NPE.

    A known CW issue, and not kata issue per se.

  • Custom User Avatar

    I have same problem C#

  • Default User Avatar

    When I run Attempt I get the following:
    Test Results:
    Solution.TrailingZeros
    BasicTests
    SetUp : System.NullReferenceException : Object reference not set to an instance of an object
    Completed in 0.055961ms
    RandomTests
    SetUp : System.NullReferenceException : Object reference not set to an instance of an object
    Completed in 0.015124ms

  • Default User Avatar

    When I try my solution which works on my machine I get the following msg :

    /home/codewarrior/code.cs(19,17): error CS0122: `Mono.Math.BigInteger' is inaccessible due to its protection level
    /usr/lib/mono/4.5-api/mscorlib.dll (Location of the symbol related to previous error)

    Error: Command failed: mcs -out:/home/codewarrior/test.dll -lib:/home/codewarrior,/runner/frameworks/csharp/mono-4.5,/runner/frameworks/csharp/nunit/bin -langversion:Default -sdk:4.5 -warn:2 -target:library -r:nunit.core.dll,nunit.framework.dll,nunit.core.interfaces.dll,nunit.util,Newtonsoft.Json.dll -r:System.Numerics.dll -r:System.Drawing.dll -r:System.Data.dll -r:System.Data.SQLite.dll -r:System.Data.SQLite.Linq.dll -r:System.IO.dll -r:System.Linq.dll -r:System.Linq.Dynamic.dll -r:System.Linq.Expressions.dll -r:System.Messaging.dll -r:System.Threading.Tasks.dll -r:System.Xml.dll -r:Mono.Linq.Expressions.dll /home/codewarrior/code.cs /home/codewarrior/fixture.cs
    /home/codewarrior/code.cs(19,17): error CS0122: `Mono.Math.BigInteger' is inaccessible due to its protection level
    /usr/lib/mono/4.5-api/mscorlib.dll (Location of the symbol related to previous error)

  • Default User Avatar

    No problem. Have a good time and fun at CodeWars!

  • Custom User Avatar

    Sorry but i was not returning something from my function

  • Default User Avatar

    At the moment it seems that there are general problems with the test-executing in code-wars.

    I think, this is the only issue.

  • Default User Avatar

    When I do Submit in C++ with my code, I get "Time: 11ms Passed: 9".

    Did you try it several times?

    The example tests run without problems?

  • Custom User Avatar

    I have an issue with this kata. when i run tests on my code it says passed = 0 and failed=0. I don't know what's the problem with it. I'm doing it in c++. Can you people help me out?

  • Default User Avatar

    Good job! Thanx for the translation!

  • Custom User Avatar

    I see where you're stuggling.

    For example, you're a person with a very strange name, ok? Apperently, your parent named you Sabuid... I know, this is indeed a very strange name. Now you should get your own userID. This will be uidsabuid. You see what I did there? For sure, this userID contains two times the string uid, but the second one is a part of your name. Therefore, only the first occurence should be removed!

    The testcase you're looking for has uidMultipleuid as an input and expects multipleuid as an output.

    Please mark this issue as resolved if it's been clarified. Thanks

  • Custom User Avatar
  • Default User Avatar
  • Loading more items...