Skip to content

Commit 62881ad

Browse files
authored
Update minimum-xor-sum-of-two-arrays.py
1 parent a2634b4 commit 62881ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/minimum-xor-sum-of-two-arrays.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def minimumXORSum(self, nums1, nums2):
6161
:type nums2: List[int]
6262
:rtype: int
6363
"""
64-
dp = [(float("inf"), float("inf"))]*(2**len(nums1))
64+
dp = [(float("inf"), float("inf"))]*(2**len(nums2))
6565
dp[0] = (0, 0)
6666
for mask in xrange(len(dp)):
6767
bit = 1

0 commit comments

Comments
 (0)