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 guess either of these approaches would work, although neither of them are things I would do in practice to build a class hierarchy as described in the challenge :)
Or don't make your classes public. Just write something like "class Demon extends UnderworldFigure".
One can actually inherit from an inner class. It's a little very wordy, but it should work
Mh, you make a good point here: I opted to follow the author and to consider the same exact word as an edge case of an anagram, but I see your point. I added that to the description, thanks!
Juat tried to do a Kata that requires class inheritance, and since Java requires a class to be in a file of the same name, it is not possible to test using a class hierarchy.
Is there a way to create the separate class files in order to do inheritance ?
I ended up having to add a toLowerCase to my hex format string because the test cases are looking for lower case alpha on the hex strings.
Appears to be missing a requirement to truly represent an anagram: the two strings shouldn't be identical.
I think you have one missing requirement for Anagrams: if the two strings are exactly the same, they aren't technically anagrams.
To pass the random tests I had to remove the check for identical letters in the same order.
Javascript - I do ignore case, didn't check for punctuation so that's probably my miss, thanks !
Which language? JS, Ruby, Python? Probably Python, since JS and Ruby have random tests. Do you ignore cases and punctuation?
OK, I'm failing on tests 3-5 on submission.
Thought maybe they were testing an exact match (which wouldn't be an anagram), but that doesn't appear to be the case.
Can you give me a hit as to what those tests are looking for - am I missing a requirement ?