Transcript for:
Merging and Sorting Integer Lists

all right so let's say we have two lists of integers A and B we want to merge them remove duplicates and sort the result in ascending order so I'll create a function called merge arrays with array A and array B as inputs first combine the list using array A plus array B then convert the result to a set to remove duplicates since sets naturally ignore repeated values next use sorted on the set to return a sorted list now just return that line finally call the function like this c equals merge arrays with A and B as inputs so let's run this and there we go be sure to leave a like if you found this helpful