← Microsoft questions

Maximize array elements and count word occurrences in matrix

Filed under Microsoft

Given two arrays, maximize the elements of the first array using unique digits (0-9) from the second array. Also, count occurrences of a given word in a character matrix moving in any of 8 directions.

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.