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.
Groovy Translation
This description was beyond confusing!
This is how it should be written:
Create a Base-Class/Parent Prototype and name it Human with attribute of name.
Create Two Child Prototypes/Subclasses from your base class Human, using inheritance. Rename your new Child Prototypes/Subclasses; Man and Woman.
Define an object named God with a method named, create. Within the create method, instantiate new objects of Man and Woman using
your inherited Classes. Within your God object, return an array with a length of 2, containing your newly created Man and Woman.
Alternatively, you may add to the original God class and redefine the create method.
Considering the categorization as 8 kyu and we cannot change the difficulty, it is safe to assume beginner's have no experience creating objects or are familiar with OOP principles.
Therefore, it is important to discuss more important discription info here because of such an incomprehensible design by the author.
Ruby: no random tests
python:
c translation (author gone)
JS: No random tests
Ruby 3.0 should be enabled, see this to learn how to do it
This comment is hidden because it contains spoiler information about the solution
no non-char test code?so i don't what your non-char characters,and the rule
what a waste of time......
Something fishy is going on with the test cases on submit:
So I made a single change in my code, I now return 0 on non-match to see what it reports:
What is going on here?!
Are the test strings pseudo randomly generated with the hash of my code as the seed?
This comment is hidden because it contains spoiler information about the solution
i have completed unit tests successfully but if i submit them to server i get unknown error.
does that mean i get infinite loop or something? thanks
edit: i am using java
edit: i have solved the issue. it is because i have code that looked like this
i fixed it by having if construct terminate properly before commenting.
This comment is hidden because it contains spoiler information about the solution
I would either expand on the description describing specifically what needs to be accomplished or perhaps add the stubbed out construstor and secret number field. With out this information the kata starts off more as a guess and check to figure out what needs to be accomplished rather than trying to actually solve the problem.
This is too vague:
1, 2, 3, ..., 10]
) or exclusive ([2, 3, ..., 9]
). Technically, between 1 and 10 means "only 2 through 9, inclusive."Loading more items...