Question

Write a function to find complement of a set given the universal set?

Login to Submit

Examples

A set of elements which are not in A but in U is called complement of set A.

The first param is the universal set and second param is the set A

Input: [1, 2, 3, 4, 5] [1, 2]
Output: [3, 4, 5]