โ† Snapdeal questions

Sum of max elements divisible by specific numbers using one loop

Filed under Snapdeal

The question

Given two arrays Arr1 and Arr2, calculate the sum of the maximum element in Arr1 that is divisible by 10 and the maximum element in Arr2 that is divisible by 5, using only one for loop.

No write-up yet. Related questions below have one.

Related Snapdeal questions

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