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.
I was not able to replicate the problem, the reference solution returns
false
for72
and other non-powers multiples of4
such as20
,44
, etc. Nevertheless, I added those as fixed tests and upgraded the C# random tests to improve coverage. This kata still has a poor design in C# due to the parameter being anobject
and the input validation, which is already not a good idea, is underspecified and not toroughly tested..
This comment is hidden because it contains spoiler information about the solution
Quickly looking I don't see the ordering enforced in most of the solutions. It just happens by luck that the small amount of rows is scanned in the same order every time. Maybe you should randomize the selection of the test data to force more thinking on the final ordering.
Thank you, I appreciate it!
Thank you ;)
Random tests added.
thank you
it was kata issue
fixed
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Issue has been solved! I've added a random test!
EDIT: I actually tried, and did not see a random test appear, is there something I am missing?
EDIT2: Okay I am very close, it is saying the following: System.ArgumentOutOfRangeException : StartIndex cannot be less than zero.
Parameter name: startIndex
Ahh i see, i will add in a few random tests!
:)
Thank You!
Loading more items...