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.
Lua translation!
Approved
Should be good now.
Done.
Please add the following edge cases:
"123."
"-12."
Lua translation!
Approved
What I did:
D translation moved from duplicate kata Get number from string.
Lua translation!
All single digits raised to the 1st power are equal to themselves. I don't get what you're doing there in those examples you mentioned.
12 -> 1^1 + 2^2 = 5 which is not 12
45 -> 4^1 + 5^2 = 26 which is not 45
Hey! This looks pretty cool, but I'm confused by the examples. It looks like the first example doesn't have any numbers that add together, but it returns the entire range. The second example appends 89 to the list. But in the end, the description said if there aren't any matches (90 - 100), then return an empty list.
Why is the first example not empty, since it's just 1 - 9? 1^1 + 2^2 = 5, so wouldn't it be 1, 2, 5? And 4^1 + 5^2 = 26, which isn't in the list.
Super confused lol. Thank you in advance for any help.
Lua translation!
Lua translation!
Loading more items...