Gromov-Witten invariants of a class of toric varieties. Chow rings of \(\widetilde{M p}_{0, 2}(N, d)\) and \(\overline{M}_{0, 2}(\mathbb P^{N - 1}, d)\) and Gromov-Witten invariants of projective hypersurfaces of degree \(1\) and \(2\) 