Accounts of Zohran Mamdani’s campaign for New York City mayor have highlighted both his online presence and his ground game.