Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Bin packing problem variation repost (see[834245])

by choroba (Chancellor)
on Apr 17, 2010 at 15:22 UTC ( #835256=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
      print join',',sort num @{$groups{$gid}{list}};
      print "]\n";
  2. or download this
    840 [103,118,130,143,158,188]
    840 [88,261,154,123,116,98]
    862 [198,150,126,132,135,121]
    863 [105,121,132,145,162,198]
    863 [183,109,172,148,122,129]
  3. or download this
      ($minsum,$maxsum) = ($max,$min);
      foreach my $gid (keys %groups){
          $largest_gid = $gid;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://835256]
[Tanktalus]: SwaJime: wouldn't status & status < 13 be true if status was 0?
[SwaJime]: I thought 0 was false, and false AND anything would be false ...
[SwaJime]: unless & is higher precedence than <
[SwaJime]: couldn't find bitwise in precedence list for sybase
[SwaJime]: I bet that is why ... and that makes it to be I think terribly written code :-|

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-08-22 18:11 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (338 votes). Check out past polls.