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.
Thanks mate for your reply!
I was:
using namespace std;
so namespace resolution shouldn't have caused problems, I guess it was just some bug in the interface at that time, it worked ok in the days later.
And I know that "using namespace" is frowned upon by some, but I'm here just for fun, not production code ;)
This comment is hidden because it contains spoiler information about the solution
and still, after a while I decided to check the test cases... hmmmm.... I wonder what is wrong with this statement:
Test.assert_equals(abs(len(primes)-len(sol_primes)<3),True)?
Maybe the fact that it returns the absolute value of ( len(primes) - len(sol_primes) < 3 )
:))
I'll be honest, the big challenge in solving this kata (Python version at least) was to figure out what the author intended to have for the length of primes[]. I happen to know a few things about primes, but this kata got me confused. I don't even know why I passed, and I won't try to figure it out.
I apolodgize I wasn't more explicit in raising the issue.
It refers to the Python version of the Kata. I've checkcked and it seems that it still needs the hack in order to pass
"I know kungfu!"
Nah, I don't, and I'm far from mastering Python metaprograming, but what a great kata to get me started on the subject!
Thanks Dundee!
This comment is hidden because it contains spoiler information about the solution
Thank you Zirgion! Great Kata, I really enjoyed solving it! I will try to refactor the code at some point given that in current version I kept adding patches as I was hiting initially unforseen problems. Didn't realise how many things one needs to keep track of, while playing chess :)
Nice Kata, g964! Clear description and important math concepts.
If the tests for puzzle would use larger 's' it would force me to improve the efficiency of the implementation.
This way, I just took the lazy approach ;)
This comment is hidden because it contains spoiler information about the solution
Nice one myjinxin, like all your kata's!
Hi, it's a very nice Kata! However it has an issue that needs to be fixed in test 34. I needed to hack my code to pass that test. I'noticed that all the latest submissions have a similar hack. The "expected" value in test 34 has more characters than the input text.
This comment is hidden because it contains spoiler information about the solution
Very nice kata!! I think that with some small change which would prevent the use of a key, it could definitely be ranked higher.
Maybe write another one in the series.
Nice Kata! wonder why someone doesn't translate it to Python ;p
Loading more items...