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.
This comment is hidden because it contains spoiler information about the solution
could you please explain whats going on after the 0ull
ahah when two Shifu meet
Yea it should be 2n+2 where n is the vector size.
Thank you! :-) It was a ton of fun.
Will do a couple other translations soon. Lisp isn't that hard when you already know Clojure and Racket, lol
Thank you.
Ha, yes, I just joined today. Looking forward to more kata :-)
You have yourself a great week!
Ha, yes, I was surprised as well! :-)
It was a great kata.
Thank you!
Thank you Zizou!
The description states:
But it seems the JavaScript translation does include the value
0
by generating arrays with the following code:I've taken care of this in Rust with an interval of
[-1_000, 0) U (0, 1_000]
, so excluding0
.You have a great weekend as well! :-)
Haha, hooray! Thank you.
Time for dinner :-)
Have a great evening Zizou.
I have just submitted a fork below, including the Rust examples, just like the author did for Prolog.
I think this might be because the
Prolog
translation updated the description. I haven't added anything as far as I know, so I'll have to fork it, I think.Haha, yes, they do! I like translating them :-)
I have changed the iterations to 100. I didn't know that was the minimum at the time of translation, as you've already mentioned :-)
It currently goes up to
14
as the random range's upper bound is not inclusive.The product of the first 14 prime numbers is <=
std::u64::MAX
, which is the return value, see:It should print
Yes, the value fits!
, as can be seen in this Rust playground.If you want me to increase it to
15
, that also works without overflow.primoral(14)
primorial(15)
std::u64::MAX
Have a great evening!
My solutions for translations aren't that great, I'm just trying to make sure they're functionally correct, above all else :D
Cheers!
Yes, it all seems to be working now! Phew. :-)
Thank you!
Loading more items...