Ad
  • Custom User Avatar

    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 :)

  • Custom User Avatar

    Or don't make your classes public. Just write something like "class Demon extends UnderworldFigure".

  • Custom User Avatar

    One can actually inherit from an inner class. It's a little very wordy, but it should work

  • Custom User Avatar

    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!

  • Custom User Avatar

    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 ?

  • Custom User Avatar

    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.

  • Custom User Avatar

    Appears to be missing a requirement to truly represent an anagram: the two strings shouldn't be identical.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Javascript - I do ignore case, didn't check for punctuation so that's probably my miss, thanks !

  • Custom User Avatar

    Which language? JS, Ruby, Python? Probably Python, since JS and Ruby have random tests. Do you ignore cases and punctuation?

  • Custom User Avatar

    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 ?