in reply to Re: Find the missing number
in thread Better way of writing "find the missing number(s)"

That's a well oiled twist.

Everyone looking at arrays and comparisons when there was a mathematical solution hiding in plain sight.

Replies are listed 'Best First'.
Re^3: Find the missing number
by AnomalousMonk (Archbishop) on Apr 04, 2017 at 23:06 UTC
    ... a mathematical solution hiding in plain sight.

    Perhaps better to say "hiding in obscurity." From the OP (emphasis added):

    ... find a missing number if in a list of numbers. ...

    ...
    my @arr = (19,17,22,23,24,15,16,25..35);
    ...

    But the list in the code example clearly has more than one missing number. See also the (current) thread title. I think the goose chase, although wild, was justified.


    Give a man a fish:  <%-{-{-{-<

      Ahh, I stand corrected. It's funny how user requirements can hinge and swing wildly from a small misunderstanding.