CHARLOTTE, N.C. (AP) Struggling with his jump shot, James Harden turned to his backup plan on offense.
Harden decided the best way to help the Houston Rockets snap a seven-game losing streak was to start taking the ball to the basket, draw contact and get to the foul line.
That strategy worked pretty well on Monday.
Harden scored 29 points and hit all 10 of his free throws in the fourth quarter as the Rockets rallied to beat the Charlotte Bobcats 100-94 in a Martin Luther King Jr. Day matinee.
Harden made just 5 of 20 field goals, but went 19 of 21 from the free throw line. He was perfect from the line when the Rockets overcame a seven-point deficit in the final period.
``It felt like winning a championship,'' Harden said of snapping the losing streak. ``It feels good. We have had our losing ways and just to get this one off our back, go back home and get that confidence back is big. Maybe we can get our swagger back a little bit.''
Kemba Walker was 6 of 7 on 3-pointers and had a career-high 35 points for the Bobcats, who set a franchise record with their 15th straight loss at home.
The longest home losing streak in NBA history is 19 straight by Dallas during the 1993-94 season.
Ramon Sessions added 19 points for the Bobcats.
But while Walker was phenomenal, it was Harden who took over when the game was on the line.
``We got in the penalty really early, so we decided to get the line as much as we can,'' said Rockets coach Kevin McHale.
``But 21 times is pretty amazing. James was what, 5 for 20 from the field, with 29 points. That's hard to do.''
Marcus Morris had 21 points and tied a career high with eight rebounds for the Rockets. Carlos Delfino scored 16 points, including a 3-pointer from the right corner that put Houston ahead for good at 96-94 with 1:54 left.
Harden has led the Rockets in scoring in 22 of the past 23 games. He also finished with seven assists and seven rebounds while playing 42 minutes.
While McHale was thankful to get out of Charlotte with a win, he wasn't exactly thrilled with his team's overall sloppy play.
``We've got to play better,'' McHale said. ``We were missing layups, bouncing the ball off our knee, you know, it was kind of like a comedy act there for a while. That happens. We've been in a funk and we've got to work our way out of it.''
It looked for a while as if the Rockets losing ways might continue.
Houston couldn't find a flow on offense early and fell behind by 12 against the typically slow-starting Bobcats.
Harden was just 2 of 9 from the field in the first half and missed several easy shots, including a pair of driving layups. He also had three turnovers, including one where he inexplicably lost control of his dribble with no defender near him. He twice had his shot blocked in the first half.
Harden's shaky first half ended when his heave from half-court as time expired sailed about 10 feet wide of the backboard.
Meanwhile, Walker was just getting started.
He made all three 3-point attempts in the first half, helping the Bobcats take a 56-45 lead at the break. And Charlotte led by seven entering the fourth quarter after Walker knocked down two more 3s late in the third quarter.
``He was just killing us,'' McHale said.
But as has been the problem most of the season, Charlotte had trouble closing out an opponent, shooting just 4 of 19 in the fourth quarter and scoring just 13 points.
Walker had seven of those points and Sessions had six, but no other Bobcats scored in the final period.
``Kemba and Sessions got going but we really need that third scorer,'' Bobcats coach Mike Dunlap said. ``It's not an individual on our team, it's just finding who that third scorer is.''
Walker said he's been working overtime on his jumper of late, but didn't feel much like talking about his career high after the game.
He was still miffed at yet another blown lead at home.
``It's tough,'' Walker said. ``We're trying our hardest to win these games, but it's just not working out right now. Hopefully, things will work out for us. It gets tough in the fourth quarter. Teams adjust to what we've been doing. You have to execute. I thought we got some pretty good shots and just missed them.''
NOTES: Bismack Biyombo tied a career high with seven blocked shots, four of those on Harden. ... Walker's six 3-pointers were a career best. ... Harden has scored at least 20 points in a career-high 23 straight games. ... Patrick Beverly scored a career-high 10 points for the Rockets.