HTMLify
Union of Arrays with Duplicates
Views: 4 | Author: prakhardoneria
1 2 3 4 5 6 | class Solution: def findUnion(self, a, b): res_set = set(a) res_set.update(b) return list(res_set) |
1 2 3 4 5 6 | class Solution: def findUnion(self, a, b): res_set = set(a) res_set.update(b) return list(res_set) |