1885. Count Pairs in Two Arrays
Description
**Input:** nums1 = [2,1,2,1], nums2 = [1,2,1,2]
**Output:** 1
**Explanation**: The pairs satisfying the condition are:
- (0, 2) where 2 + 2 > 1 + 1.**Input:** nums1 = [1,10,6,2], nums2 = [1,4,1,5]
**Output:** 5
**Explanation**: The pairs satisfying the condition are:
- (0, 1) where 1 + 10 > 1 + 4.
- (0, 2) where 1 + 6 > 1 + 1.
- (1, 2) where 10 + 6 > 4 + 1.
- (1, 3) where 10 + 2 > 4 + 5.
- (2, 3) where 6 + 2 > 1 + 5.ac
Previous1884. Egg Drop With 2 Eggs and N FloorsNext1886. Determine Whether Matrix Can Be Obtained By Rotation
Last updated