← Questions

Merge two sorted arrays into distinct values

0
Microsoft AICodingLast asked Oct 2026

A coding interview question asked in Microsoft AI's coding round, last asked Oct 2026. It tests arrays, two pointers and merge.

Two integer arrays, nums1 and nums2, are each sorted in non-decreasing order and may contain repeated values. Return one array, sorted in ascending order, that contains every value appearing in either input exactly once.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

arrays · two pointers · merge

Your code and the AI tutor open when you unlock this question.