Count Paths With the Given XOR Value
Count right-or-down paths by their running XOR, keeping one count for each of the 16 possible XOR values per cell.
Count right-or-down paths by their running XOR, keeping one count for each of the 16 possible XOR values per cell.