HUAWEI OD machine test real questions, the 2023 year machine test question bank is fully covered, click here for the guide of brushing the questions
Count the number of matching pairs
array of knowledge points
Time limit: 1s Space limit: 32MB Limited language: unlimited
Title description:
Given two arrays A and B, if an element A[i] of array A and an element B[j] of array B satisfy A[i] == B[j], then find a matching value The two-tuple (i, j). Please count how many such two-tuples exist in the two arrays A and B.
Enter a description:
The length M of the input array A in the first line; the second line