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.
Looking at this actually seems to reveal the issue, as logging the input arguments (with
trace
+show
) shows that my code is called with[27, 15, 14]
(which ends in 7) instead of[27, 15, 15]
(which ends in 3).The following Haskell test case fails for me: lastDigit [7,11,2], expected 3 but got 7. However, checking 7^(11^2) in Wolfram Alpha shows that the last digit is, indeed, 7.