Merge Two Sorted Arrays and Deduplicate

Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy

Given two integer arrays `A` and `B` sorted in non-decreasing order, merge them into a new array `C` such that:

Loading the problem…