Back to course home
0% completed
Vote For New Content
Solution: Minimize the Maximum of Two Arrays
Problem Statement
Given divisor1, divisor2, uniqueCnt1, and uniqueCnt2 integers, find the smallest possible maximum integer that could be present in either array after they are filled according to the below conditions.
- You can take two arrays
arr1andarr2which are initially empty. arr1contains totaluniqueCnt1different positive integers, each of them is not divisible bydivisor1.arr2contains totaluniqueCnt2different positive integers, each of them is not divisible bydivisor2.- There are no common integers in both arrays.
.....
.....
.....
Like the course? Get enrolled and start learning!