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.
Okay I will add some random tests.
Will add how to round the result in the description.
Do you mean the description of the problem or the problem itself? The solution is very simple so thats why I put it at 8 kyu. I did not wanted to put the rounding as thats the only hard part as in real world you usually do not measure a slide more than 2 decimal places. But I will change the problem
I changed it around and made the ExpandPrimes implimentation with the prelim tests all passing but the attempted test gets timed out.
Have the same issue. I think the test has a typo or something
Thanks I think it is probkem with the type I am using have to use Big Integers. Fun kata btw!
A bit confused with the second formula. I passed the tests but in the attempt failed for 14 and 18. Are there any parenthesis in the formula?
1/2|Bk|2PI^k/k!
Is it (1/2)* |Bk|* (2PI^k/k!) or?
I had a lot of trouble getting to this one liner. No resharper in python haha. I was writing in the editor bit by bit and printing it out. Plus I had trouble with the function name.
I am having the same issue, all my test are passing both in ncrunch and resharper in visual studio but fails here. Did you get a proper answer?
yes I have seen the other comments its been a day now this is really exciting but frustrating at the same time i tried usimng iter tools but the data type is different so i need to figure that out now haha.
Yes now have execution timed out error. I am using two for loops and the attempt speed is around 619ms. I will figure it out thanks a lot
I see. thanks for this. I will try to reduce the memory allocation.
This comment is hidden because it contains spoiler information about the solution