CHARLOTTE, N.C. (AP) -- Kemba Walker scored 39 points, and the Charlotte Hornets battled back from 22 points down in the second half to beat the Sacramento Kings 127-122 in overtime Monday night.
Nicolas Batum had 18 points, 10 rebounds and eight assists for the Hornets, who have won four of their last five games. Jeremy Lin had seven of his 14 points in overtime.
It was the second-largest comeback in franchise history.
DeMarcus Cousins had 30 points and 11 rebounds for Sacramento, and Rudy Gay had 28 points and 10 boards. Rajon Rondo had 14 points and 20 assists.
Walker had 21 points in the fourth quarter and appeared to win the game on a driving scoop layup down the right side of the lane with 0.7 seconds left. But Gay scored on a side inbounds pass from Rondo to send the game into overtime.
The Hornets trailed 91-74 in the third quarter before Walker got hot. He was 9 of 10 from the field in the fourth with three 3-pointers.
In the extra period, rookie Frank Kaminsky knocked down a 3-pointer from the top of the key and Lin converted a three-point play off a nifty drive down the right side of the lane, giving the Hornets a 118-114 edge.
Lin then sliced through the defense for a reverse layup to push the lead to six and bring the crowd to its feet.
The Kings pulled within two before Lin hit a step-back jumper from 19 feet to make it a two-possession game with 43 seconds left.
After a Rondo turnover, Walker drained two free throws to make it 124-118 and the Kings never challenged again.
Charlotte has won six straight at home.
The game was tied at halftime, but Gay scored 16 points in the third to help the Kings build a 22-point lead.
Walker and the Hornets refused to quit.
Playing with a lineup that included Walker, Lin, Batum, Cody Zeller and Kaminsky, the Hornets stormed back to take the lead on Walker's 16-foot jumper with 1:01 left in regulation.
Kings: Rondo was two assists shy of the franchise record of 22 set by Phil Ford in 1979. ... Sacramento fell to 4-1 after leading entering the fourth quarter.
Hornets: Walker moved past David Wesley into third place in Hornets history in made 3-pointers with 393. ... P.J. Hairston started and had a season-high six rebounds.
Kings: Visit Milwaukee on Wednesday night.
Hornets: Host Washington on Wednesday night.