Stephen Curry scored 16 of his 37 points in the fourth quarter as the Golden State Warriors held on for a much-needed 124-120 NBA victory over the Brooklyn Nets.
Curry made seven of seven attempts in the final period and Klay Thompson made a pair of key three-pointers in the last four minutes as the Warriors - who had led by as many as 18 points - avoided a second-half collapse and ended their three-game losing streak.
Cam Thomas scored 41 points and Spencer Dinwiddie added 16 for the Nets, who took their first lead since the first quarter on Mikal Bridges's three-pointer with 9:12 left in the fourth quarter.
After a tense exchange of leads, a Curry layup gave the Warriors a one-point lead with 6:46 remaining and they wouldn't trail again.
In Denver, Nikola Jokic and the reigning champion Nuggets couldn't hold off Oklahoma City Thunder, who triumphed 118-117 on Shai Gilgeous-Alexander's turnaround jump shot with 1.4 seconds remaining.
Gilgeous-Alexander finished with 25 points, Jalen Williams added 24 and rookie Chet Holmgren had 17 points, 11 rebounds and nine blocked shots for the Thunder.
Jokic had 24 points and 12 assists for the Nuggets, who led by eight points with 3:33 to play but lost at home for just the second time this season.
Keegan Murray was the star in Sacramento, draining 12 three-pointers - two shy of Warriors star Thompson's NBA single-game record - on the way to 47 points in the Kings' 125-104 victory over Utah Jazz.