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.
If the input string, with leading whitespace and possible +/- signs removed, begins with 0x or 0X (a zero, followed by lowercase or uppercase X), radix is assumed to be 16 and the rest of the string is parsed as a hexadecimal number.
If the input string begins with any other value, the radix is 10 (decimal).
you need to specify radix to stay on the safe side
Don't just post your code for no reason...
This comment is hidden because it contains spoiler information about the solution
Submitting a translation to this Kata.
Lua translation
Please review and approve
While your code works, you're using
filter
when you could use another method or a single loop.This comment is hidden because it contains spoiler information about the solution