Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use binary search to find smallest maximum element.
Add numbers divisible by x in nums2 and vice versa.
Solve with full IDE support and test cases