You are given an array of non negative integers nums.
Let rev(x) be a function that reverses the digits of a non negative integer x. For example, rev() rev()
A pair of indices (i, j) is considered nice if:
i j nums.length
nums[i] rev(nums[j]) nums[j] rev(nums[i])
Return the total number of nice pairs. Since the answer may be very large, return it modulo
Constraints:
nums.length
nums[i]
You are given an array of non negative integers nums.
Let rev(x) be a function that reverses the digits of a non negative integer x. For example, rev() rev()
A pair of indices (i, j) is considered nice if:
i j nums.length
nums[i] rev(nums[j]) nums[j] rev(nums[i])
Return the total number of nice pairs. Since the answer may be very large, return it modulo
Constraints:
nums.length
nums[i]