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.
No random tests in C#
Java translation
CoffeeScript translation
C Translation (author inactive).
Scala Transalation added
python at least: no sample test requiring the inversion of the inputs.
Crystal translation kumited.
This comment is hidden because it contains spoiler information about the solution
I was actually able to submit a solution with an "incorrect" answer.
I coded a correct solution, but then I wanted to make a new one using only one loop. It seemed correct, but when I hit attempt, the "random number" case failed. I wanted to debug it, so I tried again but this time it worked. I accidentally submitted it. After that, I finally debugged it correctly and found out that my solution only failed when the array ended with a 0, so it is now fixed.
To sum it up, I think test cases for arrays starting and/or ending with 0 might be useful.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
Ruby 3.0 should be enabled.
C++ translation
I can't understand what I have to do with these numbers at all.
Test.assertEquals(maxSequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]), 6)
I can see in the example that I have to start from the first 4 ([i]==3) but why would I stop at the second 1 ([i]==6) ???
What do I need after all? The sum of the numbers or the sum of the numbers between 2 specific [i]'s?
If I add the numbers I get 1.
What am I doing wrong??
Please someone make me understand this, I am thirsty for knowledge.
Loading more items...