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.
Description is contradictory, claims that
n
is both always even but also provides a prescribed return value for whenn
is odd. Python at least also tests for oddn
which likely should be removed.Approved
python new test framework is required. updated in this fork
fixed
Ruby error on submit:
main.rb:48:in
block in sol_goldbach_partitions': uninitialized constant Prime (NameError) from main.rb:47:in
tap'from main.rb:47:in
sol_goldbach_partitions' from main.rb:57:in
block (3 levels) in 'from main.rb:55:in
times' from main.rb:55:in
block (2 levels) in 'from /runner/frameworks/ruby/cw-2.rb:55:in
block in describe' from /runner/frameworks/ruby/cw-2.rb:46:in
measure'from /runner/frameworks/ruby/cw-2.rb:51:in
describe' from /runner/frameworks/ruby/cw-2.rb:202:in
describe'from main.rb:54:in
block in <main>' from /runner/frameworks/ruby/cw-2.rb:55:in
block in describe'from /runner/frameworks/ruby/cw-2.rb:46:in
measure' from /runner/frameworks/ruby/cw-2.rb:51:in
describe'from /runner/frameworks/ruby/cw-2.rb:202:in
describe' from main.rb:20:in
'Try to review and optimize your code
My code is correct as I test it on my local computer. But it takes too much time to run here and failed with an execution error. Maybe the problem is with my connection. Any ideas please?
Error fixed in test cases -- try to submit your solutions now.
I can't -- author is "too active" ;-)
Can you also approve the translations while at it :)?
It gives the same error to me. I don't think it's our fault. Blame the tests.
I falled in the same situations, but with test of 32000 correct!
made a list of prime values in python from 0 to n and checked if sum of two primes is equal to n and first value less than or equal to second value then converted them to string and appended values to partition list ... sampe tests are successful when submitting got the error 'NameError: name 'primes' is not defined' for large integers.......any help please
Random tests added to python.
Oh, also: I would put a few more high-numbered test cases, as currently only one test go to
32000
, the rest being rather far from it.Loading more items...