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.
Not a kata issue. Closing.
Strictly a mathematical challenge more or less.
Thanks! That was very helpful.
19th test is
[2,2,101,2]
and the last digit is 6: https://www.wolframalpha.com/input?i=2%5E2%5E101%5E2You can print the input array to see what tests pass to your solution.
I'm stuck. My Python solution passes 635 tests, fails on one. It fails on the 19th Basic Test, the only feedback is '4 should equal 6'. Is it possible to see what that test is so that I can work out what's going on?
I apologize, I was really wrong, it's a pity that I realized very late.
How can you say that it should be 4? Have you calculated it manually?
It should be 6, see this: https://www.wolframalpha.com/input?i=2%5E%282%5E%28101%5E2%29%29
Not a kata issue.
why test 2,2,101,2 should be 6, when its 4 ? C++
0⁰
can be open to interpretation, but assuming it being 1 is not completely illogical: https://en.m.wikipedia.org/wiki/Zero_to_the_power_of_zeroAlso it does not have too much impact on this problem, it affect only very narrow, specific kind of cases.
This comment is hidden because it contains spoiler information about the solution
Exponentiation is right-associative.
Thanks!
No, there can be zeros too. But there is no negative numbers.
Are all elements in the lists guaranteed to be positive?
I am sure this has probably been brought up before... but You CAN do the calculation with a calculator... it's not an unreasonably large number. The numerical value of this argument: ([4, 3, 6] comes out to 68719476736. That expected result should be 6. Why is this Kata's expected ouput wrong?
" ([4, 3, 6], 4)) .
Loading more items...