You are viewing a single comment's thread. Return to all comments →
thanks for the clean code man. this is the reason i read these comments to learn stuff like this. really nice...
<?php $handle = fopen ("php://stdin","r"); fscanf($handle,"%d",$n); $arr = array_map('intval', explode(" ", trim(fgets($handle)))); while (count($arr) != 0) { echo count($arr) . "\n"; $arr = array_filter($arr, function($v) use($arr){return $v != min($arr);}); } ?>
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the sticks
You are viewing a single comment's thread. Return to all comments →
thanks for the clean code man. this is the reason i read these comments to learn stuff like this. really nice...