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
In general - no.
For a 1-liner in isolated code runner - doesnt matter.
This comment is hidden because it contains spoiler information about the solution
Wow this kata is too good to be just in 6 kyu :D
Just... LOL!
wow
wow
It will be great if there are tests for large numbers:)
Isn't
${name}
already stringified?I just read the article http://en.wikipedia.org/wiki/Egyptian_fraction
Can I ask how did you get inspiration of making this solution?
Been solving a number of katas here but every time I see others solution Cant believe Im using the same language as you do :o
so I passed the test, other's solution seems not different to my own, have no idea what is the purpose of this kata.
while I don't see your current solution, it's probably have to do with how you check if the node you're looking at has been visited already
wow
Loading more items...