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

Re: Locate missing number in a series

by Anonymous Monk
on Apr 21, 2016 at 20:48 UTC ( [id://1161154]=note: print w/replies, xml ) Need Help??


in reply to Locate missing number in a series

#!/usr/bin/perl my $id = 0 x 25; my @leased = ( 17..25, 1..15 );# or however you set them, order not im +portant substr($id, $_ - 1, 1) = 1 for @leased; $id =~ /0/ and print "available $+[0]\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found