Where is Part 2? I can't find it...
Needs random tests
Duplicate of https://www.codewars.com/kata/by-the-power-set-of-castle-grayskull and https://www.codewars.com/kata/simple-fun-number-273-powerset up to ordering.
Nope, your code's issue ;-)
JS translation kumited.
; ) )
overall: I really like all the math related kata, including this one :-)
For this particular one, I do have trouble with the test cases, that expect a particular order of the elements.
In my opinion -- since we're dealing with sets here -- the order shouldn't matter.
And yet, the test cases -- at least some of them do expect a particular order.
I find that this is wrong, since it's mostly a detail of the implementation, not an actual property of power sets.
Kata fixed since the site change made at https://github.com/Codewars/codewars.com/issues/1010
That fix is not for you, it's for the author and admins. It goes into preloaded code.
Could you give some more clarification? I tried to copy the two lines above into my solution but that didn't do anything.
What else should I try? :)
Seen them. Thank you!
Can you also add in description details about special characters (if we ignore them or what)?
I'm afraid you got something wrong:
Simply put: letter case doesn't matter (I will update the description to make it clear)
Dermatoglyphics -> should be False, but your test expects True
False should equal True
test.assert_equals(is_isogram("moOse"), False, "same chars may not be same case")
Fix your tests
I'll fix my solution after this fix