Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
.
Not an issue
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.
I have same problem C#
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
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)
No problem. Have a good time and fun at CodeWars!
Sorry but i was not returning something from my function
At the moment it seems that there are general problems with the test-executing in code-wars.
I think, this is the only issue.
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?
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?
Good job! Thanx for the translation!
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 beuidsabuid
. You see what I did there? For sure, this userID contains two times the stringuid
, 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 expectsmultipleuid
as an output.Please mark this issue as resolved if it's been clarified. Thanks
C++-Translation kumited!
C#
Loading more items...