News for hackers. Stuff that matters.
Re:A Quick Puzzle to Test Your Problem Solving by diminishedprime on Thursday July 02, 2015 @11:04AM (#9819346)
That's exactly what I was thinking. I (sometimes) follow TDD, and I applied it to this problem. I made sure to include negatives, 0, positives, and include primes here or there to help avoid issues with multiplication/exponentiation. After a few of these, I felt pretty confident that the rule was simple.
Re:A Quick Puzzle to Test Your Problem Solving by joezydeco on Thursday July 02, 2015 @01:25PM (#9820279)
Did you try floating point numbers? I didn't see anything in the text that said integers only.
Re:A Quick Puzzle to Test Your Problem Solving by tptacek on Thursday July 02, 2015 @03:23PM (#9821015)
I tried floating point numbers. Also, at 28 decimal places, the test breaks; it's not arbitrary precision. So, technically, the answer isn't simply "any ascending sequence of numbers".
Re:A Quick Puzzle to Test Your Problem Solving by SiVal on Thursday July 02, 2015 @04:34PM (#9821434)
I actually avoided going that far to avoid getting bad data. I was trying to answer the question, "What does the experimenter THINK his rule is?" rather than what will the computer do. Since the computer can't be infinite, it will inevitably fail with overflow, underflow, and such.

I was relieved, in fact, when it worked with negatives and floats in a "safe" range.

I also tested with 1,1,2 and 1,2,2 to make sure that the required increase applied to ALL of the values, not just a specific pair.

Re:A Quick Puzzle to Test Your Problem Solving by mjevans on Thursday July 02, 2015 @05:56PM (#9821977)
I too tried to test if it was only one pair that was significant. However I grew impatient and didn't try to come up with more tests when I thought I had a sufficient answer to explain my most vexing observation (negative, positive, positive out of combinations involving negative numbers).

The observation to brainstorm for ways of proving that a statement is in fact wrong, and exhausting them, is such an eloquent way of wording the hunt for a negative.

Re:A Quick Puzzle to Test Your Problem Solving by facetube on Thursday July 02, 2015 @09:01PM (#9822770)
The slightly-shorter 0.60000000000000000, 0.60000000000000001, 0.60000000000000002 will break it too, for what it's worth. If you punch those in to a Javascript console, you can see that the FP representation of all three is 0.6.
Re:A Quick Puzzle to Test Your Problem Solving by _asummers on Sunday July 05, 2015 @04:14PM (#9834749)
0.20000000000000000, 0.20000000000000001, 0.20000000000000002 also work.
Re:A Quick Puzzle to Test Your Problem Solving by joezydeco on Thursday July 02, 2015 @05:26PM (#9821767)
Hah! Nice catch.
Re:A Quick Puzzle to Test Your Problem Solving by tptacek on Thursday July 02, 2015 @05:34PM (#9821826)
Pentester. :)
Re:A Quick Puzzle to Test Your Problem Solving by jrapdx3 on Thursday July 02, 2015 @03:50PM (#9821181)
Yes I did, though not to 28 places as tptacek had done. With 2 to 4 place floats, including negatives, the test worked as expected.

Like others here have said it wasn't a particularly hard "rule" to figure out. Easy to immediately rule out geometric relationship as in 2^y, which didn't leave a whole lot of possibilities to test. For the commenters here, I'd attribute ease of finding the solution to familiarity with the kinds of problems that programming presents.

Which leads to the idea there's value in learning even the rudiments of programming. Logically, it should encourage better problem-solving skills in general. We might think there this has important implications for our educational systems. But I know, that's probably not realistic at all.

Re:A Quick Puzzle to Test Your Problem Solving by johnsonjo on Thursday July 02, 2015 @11:35PM (#9823286)
I know the question isn't directed at me, but I thought you might want to know. I couldn't try negatives or floating point on the iPhone. The keypad didn't have the option.
Re:A Quick Puzzle to Test Your Problem Solving by ubernostrum on Thursday July 02, 2015 @12:06PM (#9819782)
My process was:

    [3 5 7]
    [7 5 3]
    [8 4 2]
    [5 7 3]
    [1 2 3]
    [1 1 1]
    [0 1 2]
At that point I could've done some more to be really certain, but felt confident enough and guessed (correctly).
Re:A Quick Puzzle to Test Your Problem Solving by perlgeek on Thursday July 02, 2015 @02:59PM (#9820867)
So you limited yourself to non-negative integers, and had no idea what negative numbers or fractions would do.
Re:A Quick Puzzle to Test Your Problem Solving by bbcbasic on Thursday July 02, 2015 @06:19PM (#9822095)
Also he didn't know what numbers whose digits add up to 88 would do.
Re:A Quick Puzzle to Test Your Problem Solving by __david__ on Thursday July 02, 2015 @06:44PM (#9822237)
Their input on the phone wouldn't allow minus or period characters so I assumed positive integers were the set.
Re:A Quick Puzzle to Test Your Problem Solving by eli on Thursday July 02, 2015 @05:37PM (#9821846)
Based on the context of the question and the UI of the testing interface, fractions seem unlikely to be an intended part of the question. I likewise wouldn't bother testing unicode U+216x roman numerals.
Re:A Quick Puzzle to Test Your Problem Solving by Ntrails on Friday July 03, 2015 @04:51AM (#9824365)
It refused to accept both fractions and imaginary numbers. I did test negatives and zeros since that was really the only remaining set I could think of.

Most importantly I used about 6 tests (3 right 3 wrong) to come up with the answer and then did another 17 looking for the trick. After all, it couldn't just be that simple right?

Re:A Quick Puzzle to Test Your Problem Solving by ubernostrum on Sunday July 05, 2015 @12:45AM (#9832497)
The presentation of the problem -- and I know that trusting the problem state is unwise sometimes in cognitive-bias tests, since many such tests are actually designed to be "we said we were asking X but actually meant Y" -- indicated a simple rule, rather than one which would behave differently on different classes of numbers.

So after the tests listed above I felt confident enough to guess.

Re:A Quick Puzzle to Test Your Problem Solving by jonkiddy on Thursday July 02, 2015 @01:32PM (#9820330)
[16 32 64] [0 0 0] [1 2 3] [3 2 1] [-1 0 1] [3 5 7] [-2 -1 0] [111 54231 9999999999999999999999]

At that point, I correctly answered the question.

Re:A Quick Puzzle to Test Your Problem Solving by jws on Thursday July 02, 2015 @03:02PM (#9820894)
Similar to mine, but we both actually failed. Real numbers are accepted and we did not test that.
Re:A Quick Puzzle to Test Your Problem Solving by WildUtah on Thursday July 02, 2015 @06:54PM (#9822285)
It accepts floating point numbers. To approximately double precision.

But it accepts zero percent of real numbers.

Re:A Quick Puzzle to Test Your Problem Solving by eru on Friday July 03, 2015 @12:38AM (#9823500)
I can nitpick better than that!

To talk about a certain fraction of real numbers you have to have a distribution over them. In general we take the uniform distribution if no distribution is explicitly given. That doesn't work for real numbers (it doesn't even work for natural numbers). (See https://math.stackexchange.com/questions/14777/why-isnt-ther...)

If there's no implicit default distribution, we have to pick on. I can pick one where they cover an arbitrary high percentage of real numbers..

Re:A Quick Puzzle to Test Your Problem Solving by elnion on Friday July 03, 2015 @02:55PM (#9827306)
Down the rabbit hole of pedantry: we don't need a distribution, just a measure, if we want to talk about how many reals it accepts. The Lebesgue measure is implied on the Reals if none is given, and the computable reals have measure zero.

We can't reasonably talk about a percent coverage, since the Lebesgue measure of the reals is infinite, but as a non-technical description, 'zero percent' is morally equivalent to saying it only covers a measure-zero set.

Re:A Quick Puzzle to Test Your Problem Solving by profinger on Thursday July 02, 2015 @03:26PM (#9821035)
I did this plus also testing [1 1.5 2]
Re:A Quick Puzzle to Test Your Problem Solving by rahimnathwani on Thursday July 02, 2015 @02:10PM (#9820578)
I was a little less systematic, but still had a positive:negative ratio of 1:2 before I submitted my answer.

4,6,8 Y 1,1,1 N 1,2,3 Y 1,6666,8777 Y 1,0,1 N 3,2,1 N 3,2,3 N 5,6,4 N 7,5,6 N