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.
Hi, I wonder, if you send in input of a number that's 100000000000. How do you expect it to be solved via recursion ?
I belive this is a 7 kyo rank Kata, Altough I did enjoy it. thank you!
Really easy to be ranked at 6. 7 at best.
Regrading C#:
please add the static to the starting method snice it's missing and will throw error.
try to use console.log() on the random tests that fail and according to it see the bug in your code.
Agree, Same here. The Random tests are broken. You get a massive array that contains sevral repeating numbers and yet the test expect a seires.
I passed all the test in C# using my code, Yet After examing my code I realized I wouldent pass a test like this: input of [4, 7, 9, 9, 9]
I suggest adding such arrays in test cases.
I know it's a problam to change but this is quite easy for 5 kyo Kata. Especially when you have the same task with more options that is ranked below at 6 kyo.
https://www.codewars.com/kata/5277c8a221e209d3f6000b56/train/csharp
Same Author by the way.
Besides that. Cool Kata, thanks :)
[Test]
public void Test1() {
string[] a = new string[] {"NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"};
string[] b = new string[] {"WEST"};
Assert.AreEqual(b, DirReduction.dirReduc(a));
}
Hi All, Can someone please explain to me how is this test expecting just WEST to return? when clearly it got NORTH beforehand. is the elimination is only over 1 index away? for example in the begining its NORTH>SOUTH>SOUTH. so is both SOUTH should be removed or just the first one after NORTH?
This comment is hidden because it contains spoiler information about the solution
How did this solution got Clever/Best practise votes? :S
I have the same issue using C#, after submiting I fail one test:
Test Failed
Expected: 33.333333333333329d
But was: 33.333333333333336d
Maybe we should return decimal insted of double?