[LeetCode] Sum of Floored Pairs

1 · · April 15, 2022, 12:02 p.m.
1862. Sum of Floored Pairs Given an integer array nums, return the sum of floor(nums[i] / nums[j]) for all pairs of indices 0 <= i, j < nums.length in the array. Since the answer may be too large, return it modulo 109 + 7. The floor() function returns the integer part of the division. ...