divide search space into two parts, combine results at the end

sum to

finding some numbers in list that sum to some

  • divide list in roughly half, creating two lists
  • sum different subsets in each list
  • choose single sum from each list and check if equals

xor paths

codeforces

finding paths from to that have every value xor’d together equal

  • find all positions reachable after half the moves from and
  • split problem calculating xors from and from
  • for each then calculate and increment answers if equals