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.
Random tests always test powers of 10. There should be random tests with not-powers-of-ten. Or you could just refrain from input validation, in accordance with documented best practices.
Example solution is
O(log n)
and passes, which means description should specifyO(log n)
instead ofO(1)
. Logarithmic time is in practice indistinguishable from constant time anyway.My kata requires a different approach to solve, which is not suitable for solving in the general version. My kata can be solved in O(1). So it's different
This kata was retired. It is important to make sure that tests are good before publishing a kata. You may create a new kata with the updated tests but I do not recommend it because there exists a general version of this task: https://www.codewars.com/kata/57b1f617b69bfc08cf00042a/python
Hello, monadius! I changed this kata and added tests for
BigInt
. Now the kata requires the use ofBigInt
. Thanks for this issue!No random tests. In order to create proper random tests, the input and output should be
BigInt
.Ninja code