You are given an m $ imes$ n integer matrix grid and an integer k.
You start at the top left cell m n
The XOR value of a path is the bitwise XOR sum of all elements along that path.
Return the total number of paths from m n k. Since the answer may be very large, return it modulo
Constraints:
m grid.length
n grid[r].length
grid[r][c]
k
You are given an m $ imes$ n integer matrix grid and an integer k.
You start at the top left cell m n
The XOR value of a path is the bitwise XOR sum of all elements along that path.
Return the total number of paths from m n k. Since the answer may be very large, return it modulo
Constraints:
m grid.length
n grid[r].length
grid[r][c]
k