NEW YORK (AP) — Spencer Dinwiddie made the go-ahead jumper with 9.7 seconds left and tied his career high with 26 points, leading the Brooklyn Nets to a 98-97 victory over the Minnesota Timberwolves on Wednesday night.

Jimmy Butler missed at the buzzer as the Timberwolves lost for just the second time in nine games.

Dinwiddie added nine assists as the Nets improved to 2-0 in the new year — more wins than they had all last January, when they were 1-15. Joe Harris came off the bench to score 17 points.

Butler finished with 30 points, mostly on the strength of 16-of-18 shooting at the foul line. Andrew Wiggins added 17 points and Karl-Anthony Towns had 16 points and 10 rebounds.

Dinwiddie had given the Nets a 96-94 lead on a jumper with 1:11 to play before three straight free throws from Butler put Minnesota back on top. The next Nets possession didn't seem to be going anywhere as the clock ran down, but Dinwiddie dribbled left away from Taj Gibson and lofted a floater that went in.

Butler then dribbled right while defended by DeMarre Carroll and got off a good look that missed.

The Wolves raced to a 17-0 lead against Indiana on Sunday and then 16-0 against the Lakers the next night, but they couldn't find an early flow Wednesday. The Nets led 24-22 after one quarter and held Minnesota to 39.5 percent shooting in the first half, taking a 48-43 lead on Dinwiddie's 3-pointer at the buzzer.

Brooklyn scored the first seven points of the third quarter to open a 55-43 lead before Minnesota finally got going, using a 23-7 run to build a 66-62 advantage. The Wolves were ahead 73-71 after three thanks to Wiggins' jumper at the buzzer.

Jahlil Okafor had two points in 11 minutes, his second appearance for the Nets since they acquired him from Philadelphia last month. After the first stint, the team decided to get him back into playing shape before putting him in games again. Okafor had sat out almost all season after falling out of the Sixers' rotation.

TIP-INS