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.
Good comment, not sure what's happening; c stuff is pretty stable since > ~2.7/x
tried on 3.4.3 (default for this kata) - got a syntax error
works fine on 3.6.0
yep, word.lower() is executed for each char call, but who cares, especially if there is a lack of extra lines in oneliner's head? =)
I'm having trouble comprehenhing why this is here, why is a kata based around either a user doing trial and error or randoming using old formulas learnt and never hinted at?
Some of the katas of this series are great, ones like these in my opinion leave a lot to be desired and very little
The last digit of
7 ^ (6 ^ 21)
!= last digit of7 ^ 6
Can you elaborate on how exactly does the algorithm work? For example
([7, 6, 21], 1)
test case: as I understand it means7 ^ (6 ^ 21)
. Either using my algorithm from "Last digit of a large number" kata orpow(n1, n2, 10)
this transforms into7 ^ 6
, which gives the same last digit as7 ^ 2
, where the last digit of49
is9
. Is this thing supposed to work in a different way or am I missing something?mb
Not an issue, a question, especially when it's because your algorithm is not correct ;-)
This comment is hidden because it contains spoiler information about the solution
That part means
a(n)
could be not equal tob(n)^2
or thatb
is shuffled.That's correct but I found the descriptive language subpar because of the end tidbit of
That would be against the instructions:
Seem's the kata doesn't test for cases where a=b^2 aka reverse.
Making it a lot easier than needed be.
Read carefully the description and try to use the hint.
This comment is hidden because it contains spoiler information about the solution