main.rb:21:in `s0lver': private method `select' called for nil:NilClass (NoMethodError)
from main.rb:51:in `block (2 levels) in <main>'
from main.rb:46:in `times'
from main.rb:46: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 main.rb:17:in `<main>'
What if 2 arithmetic progression have the same start? Should we return only the first or both? And in which order?
I have seen nothing in description about this.
Just a quick question - how many 'random' tests are there? I've up to 33 tests passed only for the overall to fail due it breaching the 12s boundary. Now this is my first python code snippet, but I figure if the algorithm works well enough to pass all the tests it reaches, maybe something needs to be added to the description covering the time requirements? Or is it possible that I'm getting too many random tests?
Nice coding challenge of the series as well, it takes a while to figure this one out.
Python new test framework should be used
Range of inputs should be specified
updated
Ruby 3.0 should be enabled, see this to learn how to do it
Fixed
Ruby random tests are raising errors by itself:
Well..
What if two sequences have the same first element?
The description says 'all possible', so return all in ascending order.
What if 2 arithmetic progression have the same start? Should we return only the first or both? And in which order?
I have seen nothing in description about this.
Thank you for the heads up :-)
Thanks for the approval
There are 95 random tests, and that should fit well in the time limit. Check your algorithm
Just a quick question - how many 'random' tests are there? I've up to 33 tests passed only for the overall to fail due it breaching the 12s boundary. Now this is my first python code snippet, but I figure if the algorithm works well enough to pass all the tests it reaches, maybe something needs to be added to the description covering the time requirements? Or is it possible that I'm getting too many random tests?
Cheers
Kevin
Ruby tanslation kumited -- please check and approve
Loading more items...