Number of Alternating XOR Partitions
Count cut points where consecutive block XORs alternate between two targets, using a prefix-XOR dynamic program.
Count cut points where consecutive block XORs alternate between two targets, using a prefix-XOR dynamic program.