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.
Fork with Random Tests for C# (please scrutinize, thanks)
I think I overcomplicated the problem by converting it to a string array and then use parseInt to conver it back to int array, that's why this happened...
But I solved it another way already, thank you so much!
string? the data types involved are int and int array, and there's nothing about
"-"
in the problem description, are you posting on the right problem?is that the full error message or are you just giving a small part of it out of context? what language is it? better yet, how can others get the same error message? if you print out input as well as your own input, does your program appear to do what it should?
I passed all the random test but failed the basic test. It said " For input string: "-" ", can anyone explain to me what does this error means?
@ Dr_Phill:
"If both i%3 and i%5 == 0, then the statement becomes 0 + 0 which is simply 0, the same as False."
you mean in that case they will both be True (which gives us a 1) which results in a "FizzBuzz". The rest is good :)
Thank you so much!
This comment is hidden because it contains spoiler information about the solution
I'm new to Python, my code was way longer than this, would anyone mind explaining how this work?