Dashboard Temp Share Shortlinks Frames API

HTMLify

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

    /**
     * @param Integer[][] $nums
     * @return Integer[]
     */
    function intersection($nums) {
        if (empty($nums)) return [];
        $common = call_user_func_array('array_intersect', $nums);
        sort($common);
        return array_values($common); 
    }
}