Number Triangles. Dynamic programming. Use cur ^= 1; old ^=1 to swap.