5 ms·
This doesn't seem to work right for negative numbers. The article says the rule is "each number must be larger than the one before it", but if you try -2 -4 -6
by brianwillis 11y ago
This doesn't seem to work right for negative numbers. The article says the rule is "each number must be larger than the one before it", but if you try -2 -4 -6 it says that pattern doesn't match the rule.
Maybe I'm just being pedantic here, but last I checked -6 was larger than -4.
- StevenXC 11y ago"Larger" in this context means "greater than" in the usual ordering of the real numbers.
- Tloewald 11y agoIt works for floating point numbers -- 0.01 0.02 0.04 for example. So it's a geometric series that has to start with a positive number and doubles. (The submit button and the show the answer button were broken for me.)