Write a function to merge two sorted arrays into one sorted array without duplicates.
HardProblem Statement
Write a function to merge two sorted arrays into one sorted array without duplicates.
Sample Input
Array 1: [1, 2, 4, 5] Array 2: [2, 3, 4, 6]
Sample Output
[ 1, 2, 3, 4, 5, 6 ]
Limits
Time: 2s · Memory: 256 MB