← ALL NOTES
Array

2425. Bitwise XOR of All Pairings

Given nums1 (length m) and nums2 (length n), form the array of all m·n pairwise XORs nums1[i] ^ nums2[j]. Return the XOR of all elements of that big array. Building all m·n pairs is wasteful — the…

Loading…