← Microsoft questions
CodingMedium

Minimum MEX for Chosen Array

Filed under Microsoft

Given two arrays A and B of equal length n, construct an array C where each C[i] is chosen as either A[i] or B[i]. Determine the minimum possible MEX (minimum excluded non-negative integer) of array…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.