Re:LINQ Ruined My Favorite Interview Question
by Myrth on Thursday July 11, 2013 @08:10PM
(#6030108)
Welp oops: <?php function top10($s) { $a = array_count_values(preg_split('/\b\s+/', $s)); rsort($a); return array_slice(array_keys($a), 0, 10); }
[ Parent
| on HN ]
There are no comments on this comment yet.