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.
You use length to index, that is how I did it since I figured it would be faster than back
This comment is hidden because it contains spoiler information about the solution
i like how you used both indexes and functions :)
This is a dup of issues raised in the above.
That is a dup of an issue raised in the above.
Thank you, and the tests seem to work fine.
Ok, it should be fine now, please reraise any issue if not.
Ok, both trivial problems fixed (has correct reference sol, and only generates correct characters). I am rewriting the random generator now to make it more stringent.
I didn't know that was approved, I took the post down just after I read the issues below as I had to rewrite the generator. I will fix it now.
This comment is hidden because it contains spoiler information about the solution
Yep. Problem between keyboard and chair again. Thanks!
"You must add up the character ASCII code of each even indexed (assume a 0 based indexing) character in y, with the alphabetical position of each odd indexed character in y to give the string a total."
This comment is hidden because it contains spoiler information about the solution
I still have this only one test failing showing:
Expected: -267383598
But was: 9828066929
or
Expected: -1030890533
But was: 9889935162
Putting the test in the try-catch clause does not make a fix for that test :P
Do we want the overflow to happen? if so, why?
same happening with mine code... all green but this test, where the results are weird:
Expected: 875597558
But was: 1356437483
or
Expected: -705845463
But was: 1247101567
it is caused by System.OverflowException with message: "Arithmetic operation resulted in an overflow." But seems that the negative value experience an overflow itself?
Do not quite understand.....