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.
@torokmark, git gud.
@Unnamed, yes, calculating values for
n=1000
is still easy but at least you have to be more clever than "apply a given function, convert number to string, return its length". IMO that'd even be a more or less good task.The number of digits in F(275) is comparable to the estimated number of atoms in the known Universe, so it would be quite hard to represent it indeed...Well, I thought about something else. Actually, it's just about hardcoding or calculating a precise multiplier, so it should be an easy, but boring task even for 1000.
Fermat numbers increase exponentially, so calculating the 23th number results Time out here. The time of the calculation of the 1000th number probabily takes more than a year on a single laptop.
I strongly suggest to test high values (at least up to
1000
, although I think it's possible to go way higher while still getting correct results) as currently this kata is a worthless task.getTransition("SOLIDLIQUID", "")
? ;-)Creating a
HashMap
with every function call is not a best practice.