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.
now on dart.
author is not active
Translation Dart
Haskell fork that fixes that.
I figured it would be something like this but I didn't know the numeric values so I wrote a dictionary lol
I really enjoyed this one! Prime numbers strike again — they never get old. Always fun to revisit them with a new twist!
Haskell:
Description says a and b will both be <= 20000 but the tests expect values beyond that.
Fixed in this fork, re-raised for Haskell
Java:
camelCase
, notPascalCase
Refer here on how to enable backward compatability to not invalidate all solutions
This comment is hidden because it contains spoiler information about the solution
Same solution
I can see you were trying to pass that last test
This comment is hidden because it contains spoiler information about the solution
I love the simplicity. I need to get on this level of understanding code. Great stuff
Agreed
It might be easier to read when you have pages of code with many different functions.
nice radix conversion from int to string
counting matches of '1' is simple, and could easily scale to higher radixes such as octal
could easily be extended to match multiple digits, such as .count('137')
range traversal is clear
accumulator function sum() over a list is also a nice aggregate function
Loading more items...