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.
Yes, I was going for an easy solution and did modify the original. Sorry.
Good to know! Thanks for pointing that error ;)
I tested both. Example tests and submit tests. It works now!
Thanx for correcting!
I assumed that you are refering to the Example Test Case of C# version.
So, I updated it. Is the issue now solved?
The lines 13 to 17 must be changed into this:
This should work for the example tests.
Thanks! It should now be working. :)
Which language?
Adding "[Test]" before the methods was right.
Change "int rand_lng = rand.Next() % 15;" into "int rand_lng = 2 + (rand.Next() % 15);"
This should work!
As previously stated, you should not change your array in place; anyway, test code (not done by me, but still...) modified to accommodate for that.
Sure thing ;)
I saw the usage of ... in some solutions.
Can anyone please explain ... in javascript?
Even though, nothing has been changed to the test field, I keep get the following output after having tried multiple solutions:
Naming the functions min and max is not ideal because this clashes with Python's inbuilt function names.
Your solution is highly inefficient: sorting takes n log n time, reversing n/2 times, while you can do it all in n time.
Also, changing the array in place when not required is bad practice.
Hi! Thanks for pointing that. I tried to fix myself, but I don't really know much about C#
Tryied to add
[Test]
before the methodsFixed_Max()
andRandom_Tests()
but got this when trying to validate:Could you help me in fixing it? It looks like there is some error in the Random Tests method.
Loading more items...