Dashboard Temp Share Shortlinks Frames API

HTMLify

Day 84
Views: 2 | Author: djdj
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class Solution {

    /**
     * @param Integer[] $arr
     * @return Boolean
     */
    function uniqueOccurrences($arr) {
        $a = array_count_values($arr);
        $b = array_count_values($a);
        foreach($b as $c){
            if($c > 1)
                return false;
        }
        return true;
    }
}