Joining two lists without duplicate elements
Given two lists, l1 and l2.
Sort the lists and return a new list containing all the elements from both l1 and l2 without any duplicates.
Sample Code:
def joinArr(l1,l2):
# Enter your logic here...
Examples:
Input: [1,2,3],[1,2,3]
Output: [1,2,3]
Explanation: The removed duplicates are 1,2, and 3.
Input: ['Javascript','ReactJS','NodeJS'], ['Typescript','ReactJS','NextJS']
Output: ["ReactJS","NodeJS","NextJS","Javascript","Typescript"]
Explanation: The removed duplicate is 'ReactJS'.