NEW YORK -- The day after his New Hampshire primary victory, Democratic presidential hopeful Bernie Sanders shot hoops with the ladies of “The View,” sipped beer with “Late Show” host Stephen Colbert and paid a visit to the small apartment in Brooklyn where he grew up.

The Vermont senator’s whirlwind of a Wednesday in the Big Apple was designed in part to build his exposure ahead of a spate of upcoming primaries and caucuses, but the day also felt like a victory lap at times. And Sanders certainly seemed to be enjoying it.

His chartered jet touched down near here around midnight, about four hours after the polls closed Tuesday in a New Hampshire race in which Sanders defeated Hillary Clinton by 22 percentage points. The Secret Service whisked the victor and his entourage to a Manhattan hotel.

By mid-morning, Sanders was on his way to meet with the Rev. Al Sharpton in Harlem, a signal of the importance of the African American vote in the South Carolina primary and a slew of other upcoming states. Upon departing Sylvia’s Restaurant, Sanders side-stepped a throng of media and headed to the studios of “The View.”

While hanging out in the green room, Joy Behar, one of the show’s five female co-hosts, greeted both Sanders and his wife, Jane, with hugs. Last fall, Behar made headlines by referring to the 74-year-old Sanders as “eye candy.”

“Uh oh, my stalker is here,” Sanders said as Behar approached. “You should be careful. We have Secret Service now.”

Behar told Sanders that listening to his victory speech in New Hampshire was like taking a graduate course in college. She apparently meant this in mostly a good way but also offered some constructive criticism, suggesting the speech could have been shorter.

“Everybody could use a little editing,” Behar said.

Sanders’s two segments on the show included some serious discussion -- on gun control and the water contamination crisis in Flint, Mich., among other issues. But before leaving, Sanders was led to a basketball goal that had been set up on the set and demonstrated an ability to sink shots from close range.

The idea was inspired by television coverage Tuesday night of Sanders shooting baskets in a Concord, N.H., gym with his grandchildren while biding his time before giving his victory speech.

On Sanders’s other high-profile appearance Wednesday -- “The Late Show with Stephen Colbert” -- he was treated on set to boiled peanuts and beers. It was Colbert’s way of preparing Sanders for the upcoming primary in South Carolina, where Colbert grew up.

The show also afforded Sanders an opportunity to talk about income inequality and other issues central to his campaign -- and to take a shot at Fox News Channel host Bill O’Reilly, who recently suggested he would move to Ireland if Sanders is elected president.

“This is a reason why people might want to vote for me,” Sanders said during the late-afternoon taping of the show, saying his election would be a “twofer”: he would be president and O’Reilly would flee the country.

Sanders also took part in an opening comedy bit in which he helped Colbert preview the night’s guests.

Sanders had this to say about actor Ben Stiller: “He is good. He is the star of Zoolander 2. I hope they bring back the original zoo.”

And Sanders offered this about himself: “How did you get him? He’s electrifying.”

Between his late-morning and late-night appearances, Sanders ventured to Brooklyn, where he grew up, to spend some time with Scott Pelley, the CBS news anchor.

After a sit-down interview, Sanders and Pelley walked down the street on which the old Sanders family apartment was located. Seemingly on a whim, the senator decided to see if he could get in to see it.

It turned out the apartment was vacant and being painted.

“Hello, how are you?” Sanders said, greeting one of the painters. “I used to live here a long time ago.”

On the campaign trail, Sanders has frequently mentioned growing up in a three-and-a-half-room rent-controlled apartment, and he walked through all of them Wednesday for the first time in decades.

“God, I can’t believe how small it is,” Sanders said. “When you were a kid, it looked so big.”