You are given an array nums consisting of positive integers.
Two integers
Return the total number of index pairs nums.length where nums[i] and nums[j] are almost equal.
Constraints:
nums.length
nums[i]
You are given an array nums consisting of positive integers.
Two integers
Return the total number of index pairs nums.length where nums[i] and nums[j] are almost equal.
Constraints:
nums.length
nums[i]