Thanks, I'll add this now.
Yeah, storing a reference to all the instances isn't good because it means they can never be garbage collected. Not really an issue here, but if you wanted to write real code using a similar technique you might get into trouble over it.
The question of whether the input is an array or a range is still ambiguous.
This comment is hidden because it contains spoiler information about the solution
Can confirm this is still a problem. Wish somebody would fix this.
My mind is blown. Nice work.
I agree that this is still a problem.
Is there a reason to prefer class variables over constants?
No need for parens with your if statements. I don't think I've ever seen anybody use them in Ruby.
Loading collection data...
Thanks, I'll add this now.
Yeah, storing a reference to all the instances isn't good because it means they can never be garbage collected. Not really an issue here, but if you wanted to write real code using a similar technique you might get into trouble over it.
The question of whether the input is an array or a range is still ambiguous.
This comment is hidden because it contains spoiler information about the solution
Can confirm this is still a problem. Wish somebody would fix this.
My mind is blown. Nice work.
I agree that this is still a problem.
Is there a reason to prefer class variables over constants?
No need for parens with your if statements. I don't think I've ever seen anybody use them in Ruby.