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.
Very nice
how long did it take this?
Maybe more random tests are needed? This analytic answer that doesn't use sin works about 10% of the time.
There comes a day when you get rick-rolled by a kata solution.
This is borderline below time limit... I attempted 20+ times with this same code and it only worked once
Oops, you're right. Will watch out next time
x/
next time, don't post the solution to the hard version in the easier one...
To be fair, probably very few code golf solutions should be considered Best Practice or relied upon at all. So, either we shouldn't have the option of Best Practice at all, or we should use different criteria than we would normally use (e.g., terseness as the most desirable quality).
This comment is hidden because it contains spoiler information about the solution
This is definitely not best practice since it relies on that JS doesn't mess around with the internal sequence of the Set, but if the array is too large there is no guarantee that JS won't.
It appears that Farmer Thomas helped Farmer Thomas in Farmer Thomas' task of counting horses.