Given two arrays A and B, find the number of different numbers can reach by adding exactly one element in A and exactly one form B.↵
Constraints:↵
1)|A|,|B| <= 2*10^5↵
2) 0 <= A_i,B_i <= 2*10^5↵
3) No two elements in A and nor from B is same, However may be same numbers in A and B; ↵
For example:↵
A = [1,3,5]↵
B = [1,3,7]↵
ans = 6, [2,4,6,8,10,12]
Constraints:
1)
2)
3)
For example:↵
A = [1,3,5]↵
B = [1,3,7]↵
ans = 6, [2,4,6,8,10,12]