CHARLOTTE, N.C. (AP) — Emmanuel Mudiay had 34 points and eight assists, and the short-handed New York Knicks erased a 21-point deficit to beat the Charlotte Hornets 126-124 in overtime Friday night.

Mudiay scored 14 points in the fourth quarter, including a fadeaway jumper with 27.2 seconds left to tie it at 113.

Charlotte’s Kemba Walker missed a 3-pointer from the top of the key with 8.2 seconds left and the game went to overtime.

Tim Hardaway Jr. and Luke Kornet each hit deep 3-pointers to open OT, and Mudiay had three jumpers to widen the gap. Charlotte missed 8 of 12 shots down the stretch.

Walker finished with 16 points and 10 assists. The Hornets were hoping to win their fourth straight.

Charlotte got 21 points each from Nicolas Batum and Cody Zeller, and Marvin Williams added 20.

New York snapped a five-game skid. Kevin Knox had 20 points, Noah Vonleh had 15 points and 11 rebounds, and Enes Kanter had 15 points.

Charlotte and New York exchanged the lead seven times in the fourth period alone.

The Knicks took a 109-108 lead with 1:41 left in the fourth on a 3-pointer by Kornet, but Batum matched it with a deep 3-pointer of his own and Jeremy Lamb made a layup to give Charlotte a 113-109 lead.

The Knicks, who listed just 10 active players at the start of the game, started chipping away midway through the fourth and took their first lead at the 4:18 mark when Hardaway hit a 17-foot jumper to make it 104-103. Zeller scored on a three-point play, and Williams brought down a key rebound and scored on the other end to make it 108-105 with 2:45.

EMOTIONAL NIGHT

Hornets legend Muggsy Bogues started to tear up during a halftime ceremony where he was honored for his contribution to Charlotte basketball. The 5-foot-3 Bogues, drafted by the Hornets in 1988, played for the organization for 10 years.

SHORTHANDED

Damyean Dotson was nixed from the lineup with shoulder soreness. Recently signed guard Allonzo Trier (left hamstring) and guard Trey Burke (right knee) were also sidelined. X-Rays were negative for Robinson’s ankle injury.

THE JORDAN SLAP

Hornets’ owner Michael Jordan was seen in a video Wednesday slapping the back of Malik Monk’s head after Monk rushed the court to celebrate a win prematurely, receiving a technical foul. On the slap, which picked up some national coverage, Hornets coach James Borrego said: “Michael can create some headlines, I guess.”

TIP-INS

Knicks: Have given up 64 or more points in a half 15 times this season.

Hornets: Took a 17-point lead early on a 22-4 run behind eight points from Walker, who had two 3-pointers during the stretch.

UP NEXT

Knicks: Visit Indiana on Sunday night.

Hornets: Host Lakers on Saturday night.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)