• + 0 comments
    #python
    def xoringNinja(arr):
        result = 0
        for x in arr:
            result =result | x
        return result*(2**(len(arr)-1)) % (10**9 + 7)