Merge two arrays and remove duplicate elements
KushalUpreti opened this issue · 2 comments
KushalUpreti commented
Merges two or more arrays and removes any duplicate values i.e. [1,2,3] & [2,3,4] & [4,5,6] = [1,2,3,4,5,6]
Can use Map or Set for implementing the solution in O(N) time complexity
KushalUpreti commented
Can I start working on this snippet?
Chalarangelo commented
This already exists in the form of union.