CodingReported in a candidate post, Aug 2019
Total sum of floor of array element pairs
Filed under OPPO
The question
Given an array of n positive integers, calculate the total sum of the floor of (a[i]/a[j]) for every pair of indices i and j.
No write-up yet. Related questions below have one.
Related OPPO questions
Collected from public candidate posts and coding forums. Updated Nov 2026.