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.
I got the following output when submitting:
Random tests
Testing for base [5, 15, 15] and n 7
It should work for random inputs too: -315 should equal -27795
I don't think the test is working properly. The given inputs should produce -315, which is what my code also produced. What am I doing wrong here?