Tap here to switch tabs
Problem
Submissions

Problem: Bitwise XOR of All Pairings

med
30 min
Try to solve the Bitwise XOR of All Pairings problem.

Statement

You are given two 00 indexed integer arrays, nums1 and nums2.

Consider a list containing the bitwise XOR of every possible pair ( nums1[i] ⊕\oplus nums2[j] ), where 0≤i<0 \leq i < nums1.length and 0≤j<0 \leq j < nums2.length.

Return the bitwise XOR of all the integers in this list.

Constraints:

  • 1≤1 \leq nums1.length, nums2.length ≤105\leq 10^5

  • 0≤0 \leq nums1[i], nums2[j] ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Bitwise XOR of All Pairings

med
30 min
Try to solve the Bitwise XOR of All Pairings problem.

Statement

You are given two 00 indexed integer arrays, nums1 and nums2.

Consider a list containing the bitwise XOR of every possible pair ( nums1[i] ⊕\oplus nums2[j] ), where 0≤i<0 \leq i < nums1.length and 0≤j<0 \leq j < nums2.length.

Return the bitwise XOR of all the integers in this list.

Constraints:

  • 1≤1 \leq nums1.length, nums2.length ≤105\leq 10^5

  • 0≤0 \leq nums1[i], nums2[j] ≤109\leq 10^9