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.
I just kinda copy and pasted all the using; from visual studio code but I realise I could have just used System on its own now lol
loooool, this is definitely a problem that will require collections and multithreading
This comment is hidden because it contains spoiler information about the solution
Thank you for checking and your comment. Will follow it for the next Kata :)
Mh, yes, unless you declare it as
static
somewhere?If you want to be picky (and go downvote somewhere else), some engine might behave smarter than that, but JS on its own doesn't.
See, for example.
Are you sure this is actually the case in JS?
Indentation :(
Also, declaring
gcd
inside the function will have you reallocate memory each time you callsolution
; and you might have read already how to make your code more concise, without redundant checks.original thinking (wtf;)