You are given two nums1 and nums2, each of length n, and a queries where queries[i]
For the nums1[j] nums2[j] among all indices j (j n) such that nums1[j] nums2[j] j exists, the answer for that query is
Return an array answer where answer[i] is the answer to the
Constraints:
nums1.length nums2.length
n nums1.length
n
nums1[i], nums2[i]
queries.length
queries[i].length
x_i queries[i][1]
y_i queries[i][2]
x_i, y_i
You are given two nums1 and nums2, each of length n, and a queries where queries[i]
For the nums1[j] nums2[j] among all indices j (j n) such that nums1[j] nums2[j] j exists, the answer for that query is
Return an array answer where answer[i] is the answer to the
Constraints:
nums1.length nums2.length
n nums1.length
n
nums1[i], nums2[i]
queries.length
queries[i].length
x_i queries[i][1]
y_i queries[i][2]
x_i, y_i