You are viewing a single comment's thread. Return to all comments →
Perl:
sub lonelyinteger { my $arr = shift; my %h; foreach (@$arr) { $h{$_} += 1; } my ($tmp) = sort { $h{$a} <=> $h{$b} } keys %h; return $tmp; }
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Perl: