Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by hipowls (Curate)
on Jan 31, 2008 at 02:36 UTC ( [id://665263]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @n = map { $n + 1 - $_, $_ } 1 .. $n / 2;
    
  2. or download this
    use integer;
    @n = map { $n + 1 - $_, $_ } 1 .. $n / 2;
    push @n, $n / 2 + 1 if $n % 2;
    
  3. or download this
    @n = map { $n + 2 - 2 * $_, 2 * $_ - 1, 2 * $_, $n + 1 - 2 * $_ } 1 ..
    + $n / 4;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-25 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found