Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by hipowls (Curate)
on Jan 31, 2008 at 02:36 UTC ( #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
Node Status?
node history
Node Type: note [id://665263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-01-15 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?