Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Finding missing elements in a sequence (code)

by clemburg (Curate)
on Nov 06, 2001 at 21:04 UTC ( #123619=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub find_holes {
      my @list = @{ shift() };
    ...
    }
    
    print "@{find_holes([qw(0 1 2 3 4 6 8)])}\n";
    
  2. or download this
    d:\tmp\try>perl try.pl
    perl try.pl
    5 7
    d:\tmp\try>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://123619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2021-12-05 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?