LeetCode: Find Xor-Beauty of Array
Problem:
https://leetcode.com/problems/find-xor-beauty-of-array/description/
Code:
class Solution:
def xorBeauty(self, nums: List[int]) -> int:
result=0
for n in nums:
result = result ^ n
return result
Key Poi...
is-power-of-two.hashnode.dev1 min read