Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Retrieving data with largest count

by ikegami (Patriarch)
on Jun 02, 2009 at 15:49 UTC ( [id://767649]=note: print w/replies, xml ) Need Help??


in reply to Re: Retrieving data with largest count
in thread Retrieving data with largest count

I have purposely left this code not working exactly as required (group is omitted) to give you something to work towards.

Also, your code finds the highest count per item, not per group. Since each item probably only appears once, you're just printing out the input.

  • Comment on Re^2: Retrieving data with largest count

Replies are listed 'Best First'.
Re^3: Retrieving data with largest count
by Limbic~Region (Chancellor) on Jun 02, 2009 at 17:02 UTC
    ikegami,
    Yes, (group is omitted) means I didn't consider group which is what the OP asked for. The was intentional as indicated in the same comment. I originally misread the question and when I discovered my output didn't match the OPs (before posting), I decided to leave it broken. Teach a man to fish so to speak. I guess I should have made that more clear.

    Cheers - L~R

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found