Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: GOLF: Input sort list of integers, Output as [356853]

by EvdB (Deacon)
on May 27, 2004 at 14:48 UTC ( [id://356922]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #         1         2         3         4         5         
    #1234567890123456789012345678901234567890123456789012345678 
    ...
    #map{print$j=''if$l!=$_;print++$i.") $_-".++$j;$l=$_}@_
    #map{print''if!$A{$_};print++$i.") $_-".++$A{$_}}@_
     print$A{$_}?'':$/,++$i.") $_-".++$A{$_}for@_
    
  2. or download this
     print!$A{$_}&&$/,++$i.") $_-".++$A{$_}for@_
    
  3. or download this
     print!$A{$_}++&&$/,++$i.") $_-$A{$_}"for@_
    
  4. or download this
     print$/x!$A{$_}++,++$i.") $_-$A{$_}"for@_
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found