Polls show Mr. Mamdani to be leading against Mr. Cuomo, who is running as an independent after losing to Mr. Mamdani in the Democratic primary, and Republican nominee Curtis Sliwa.