Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Quick Puzzle to Test Your Problem Solving. Parent comment
1, 3, 5, 7
what comes next? 9 right? Or is the sequence generated by 2n − 1 + (n − 1)(n − 2)(n − 3)(n − 4) for n ∈ N. Then we've got 33.
"among all hypotheses consistent with the observations, the simplest is the most likely"
33 is correct, but it's less likely to be the basis for the generation of the sequence.
Your answer of (x, 2x, 4x) proves the puzzle illustrates the confirmation bias, at least in your case.
Does the unit test that confirms your function returns the expected result given one set of arguments prove it correct?
There are no comments on this comment yet.
1, 3, 5, 7
what comes next? 9 right? Or is the sequence generated by 2n − 1 + (n − 1)(n − 2)(n − 3)(n − 4) for n ∈ N. Then we've got 33.
"among all hypotheses consistent with the observations, the simplest is the most likely"
33 is correct, but it's less likely to be the basis for the generation of the sequence.
Your answer of (x, 2x, 4x) proves the puzzle illustrates the confirmation bias, at least in your case.
Does the unit test that confirms your function returns the expected result given one set of arguments prove it correct?