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.
Well, just solve those first 2 points, we'll see after about that 3th point :)
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
Please read the documentation about kata authoring. I suggest you take this kata back to draft meanwhile.
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!
0.5 * abs(B(k)) * (pow(2 * pi, k) / factorial(k)
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?
warning, with itertools functions, you'll always have loops hidden inside. So you're not changing your algo, if you use those and you still will have more than one single loop.
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.
you need to find a way to reduce your algo to one single loop
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
not an issue, it's "on purpose". You have to find a way to find your info efficiently ("very"... efficiently...)
good work guys, keep it up!
Loading more items...