Precomputation to answer queries efficiently with delta Number of adjacent elements with the same color Sum of even numbers after queries