← Microsoft questions

Maximize number by digit replacement

Filed under Microsoft

Given a number represented as an array of digits, maximize its value by replacing any of its digits with digits from a second provided array, where each element in the second array can be used at most…

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.