• + 1 comment

    PHP easy solution Migratory Birds

    function migratoryBirds($arr) {
        $counts = array_count_values($arr);
        ksort($counts);
        arsort($counts);
        return array_key_first($counts);
    }