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.
Approved
I've modified it accordingly
I suggest to add the constant
99_999_989to the initial solution:Also,
MODshould belocalinrefsol.Fixed in this fork
Lua does not support arbitrary large integers natively. Expected results for sufficiently large
nandkare computed modulo2^64(for example,n = 22, k = 16; refsol = -5164981666411839488). It should be clearly specified. A better approach is to return results modulo some large prime number.Appreciate all of the translations, dear authors! I didn't want to flood the homepage with my "Thanks! Approved." comments ;)
JS translation
Lua Translation
(Author inactive)
Lua Translation
Lua Translation
yeah Ill fix it in the future when i have the time, thanks for pointing out the problems.
Loading more items...