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.
For instance, I had
which doesn't make sense: should the return string be stripped or not?
This comment is hidden because it contains spoiler information about the solution
You don't need to import
math
, you can just usei**j
instead ofmath.pow(i, j)
.It is weird that your solution worked, I had a really similar one, and it always timed out. I had to add a
break
in myfor
loop to quit when I already reachedi
andj
such thati**j>n
.I think the description should mention that
add('0', '0')
, for instance, is supposed to return'0'
(it could beNone
,nill
,[]
, or whatever…)