SACRAMENTO, Calif. (AP) -- DeMarcus Cousins had 30 of his season-high 40 points in the second half and added 13 rebounds, Rajon Rondo had a triple-double and the Sacramento Kings beat the struggling Brooklyn Nets 111-109 on Friday night.
It was the second straight victory for the Kings, who had snapped a six-game losing streak on Wednesday.
Rondo had his third triple-double in four games, with 23 points, 14 assists and 10 rebounds. Reserve Ben McLemore had a season-high 15 points and Marco Belinelli had 14.
Jarrett Jack had 21 points and 12 assists for the Nets, who have opened the season with a 1-8 record.
Brook Lopez had 17 points and 10 rebounds and Thaddeus Young had 16 and nine rebounds. Bojan Bogdanovic had 15 points and Joe Johnson scored 10 of his 14 points in the fourth quarter.
Cousins, who fouled out with 43 seconds remaining, had a frustrating first half, missing 9 of 10 shots and collecting three fouls. He still had 10 points and nine rebounds Cousins produced a memorable third quarter, making a pair of 3s and scoring 21 points to help the Kings take an 85-82 lead into the fourth.
After Rondo missed two free throws, Bogdanovic hit a corner jumper to pull the Nets to within 111-109 with 1.8 seconds left. A turnover on an inbounds play by Rondo gave Brooklyn the ball back. But he made amends by stealing a deflected inbounds pass to end the game.
Kings forward Rudy Gay missed the game due to a stomach virus and key reserve Darren Collison missed his fourth straight game.
Nets: Brooklyn assistant coach Paul Westphal was the Kings head coach for two-plus seasons. He was fired after starting the 2011-12 campaign with a 2-5 record. ... Lopez and Johnson were a combined 4 of 17 in the first half, but the Nets never trailed and led 60-54.
Kings: TV star Kelsey Grammer attended his first-ever Kings game and sat courtside next to owner Vivek Ranadive. . Seth Curry entered the game in the second quarter for Rondo, who had played the previous 109 straight minutes. . Earlier in the day, the Kings assigned rookie forward Duje Dukan to the team's D-League affiliate in Reno, Nevada.
Nets: Visit Golden State on Friday
Kings: Host Toronto on Sunday.