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.
Why?
Test Failed
For the following board:
0 0 2
0 0 0
1 0 1
Assert.That(actual, Is.EqualTo(expected))
Expected: -1
But was: 1
This task is wrong!!
Nice
No sample tests for c#
ngl you have to make the details more clear, but still a great kata to train
approved
Try to switch the order of a and b at opertators' part, it might helps
This question is incredibly unclear. What is it asking for exactly? There is a ton of chaff about implementation, and it obsfusicates what the author actually WANTS from the user.
My solution doesn't involve a genetic algorithm at all, because its abstract complexity designed to make the question harder. Instead, I just use a tree and bit shifting.
There is no need to create artifical complexity by trying to overcomplicate what is quite simple engineering.
Done in this fork
Very similar to this other kata, but different requirements for the solution, so both nice. I do agree with the other kata that this is 6 kyu :)
nice kata!
My array's values keeps getting reset right after being manipulated in the subtract function in one of the Attempt Tests, while it works just fine with the Sample Tests.
I am not sure what kind of "memory handling" or "memory optimization" you need to do, because it is definitely not the intention here. I checked a bunch of C# solutions, including mine old solution, and out of 10 solutions tested by me, all of them run in 3-3.5 seconds.
We can use this as a starting point to make some conclusions :)
C# 12
I don't know if I'm doing something very wierdly but the original test passes brilliantly but when trying to "attempt" it times out.
Is the point of this to do memory handling or to make an interpreter? Because as it stands I've had to spend more time on learning memory optimization :/
Unsure whether this is a CodeWars limitation and this Kata is simply too complex for CodeWars or if I'm just really dumb T_T
Will be good to mention in description, that random movement change(?) has to be distributed 50\50 (+-5%) between directions.
Loading more items...