A Quick Puzzle to Test Your Problem Solving
231–240 of 311 posts
Re: A Quick Puzzle to Test Your Problem Solving
#232It responds "No" to (10000000000000000, 10000000000000001, 10000000000000002) so the rule is not so simple after all :)
Re: A Quick Puzzle to Test Your Problem Solving
#233We should all be doing good on this one if we have been practicing making our test cases are red first before turning them green :D
To be fair, I did check 3/6/12 - just to make sure it was double and not powers of two. Guess that's the articles point though isn't it!
Re: A Quick Puzzle to Test Your Problem Solving
#234I guess the conclusion is that if a problem looks suspiciously like one you've encountered before, there's a good chance that they are the same or similar. The world is self-organizing, not completely random where you must obsessively second-guess your accumulated wisdom.
Re: A Quick Puzzle to Test Your Problem Solving
#235Maybe I'm just being pedantic here, but last I checked -6 was larger than -4.
Re: A Quick Puzzle to Test Your Problem Solving
#236Earlier quoted context omitted.
Isn't your answer technically wrong, though? The sequence is not monotonically increasing. It's strictly increasing. If you test [1, 1, 2] or [1, 1, 1] or [1, 2, 2], you'll get "No" answers even though those sequences are monotonically increasing.
Not so. http://mathworld.wolfram.com/MonotoneIncreasing.html
Re: A Quick Puzzle to Test Your Problem Solving
#237This 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.
Re: A Quick Puzzle to Test Your Problem Solving
#238This 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.
Re: A Quick Puzzle to Test Your Problem Solving
#239My mathematical logic is rusty, but if I recall correctly, Gödel's incompleteness theorem basically states that it is impossible to solve this kind of question. No matter how many tests you run, there will always be an uncertainty. An incredibly stupid example is that the rule could be "yes for strictly increasing, OR if one of the numbers is -18273192783127897981." You'll never know. I understand this is contrived,…