LOS ANGELES -- Alec Martinez scored with 55 seconds remaining, and the Los Angeles Kings ended their six-game losing streak with a 4-3 win against the New York Rangers at Staples Center on Sunday.
Martinez scored his first of the season on a shot from the top of the right face-off circle that beat goalie Henrik Lundqvist glove side.
"Yeah, when the buzzer sounds, it was obviously a good feeling," Martinez said. "We haven't felt that in a while. That said, we enjoy it tonight, and tomorrow it's back to work."
[WATCH: All Rangers vs. Kings highlights]
Vladislav Namestnikov and Tony DeAngelo each had a goal and an assist, and Lundqvist made 36 saves for New York (3-7-1), which is 0-4-1 on the road (outscored 23-13).
"It's just little plays, one play that ends the game there, so it's definitely disappointing and frustrating," Rangers defenseman Marc Staal said.
Video: NYR@LAK: Martinez puts Kings ahead in final minute
Ilya Kovalchuk had a goal and two assists, and Drew Doughty had two assists for Los Angeles (3-7-1), which started a seven-game homestand. Jack Campbell made 22 saves starting in place of Jonathan Quick, who is day to day because of a lower-body injury.
Trevor Lewis scored to make it 3-2 at 10:28 of the third period, giving Los Angeles its first lead since a 3-0 win against the Montreal Canadiens on Oct. 11 (410:28).
Ryan Spooner tied it 3-3 at 15:16, beating Campbell five-hole from the left circle.
"(Tied) 3-3 going in (to overtime) would I think be a fair result," Rangers forward Mats Zuccarello said. "I don't think either team created that much. We got to make some plays."
Video: NYR@LAK: Spooner beats Campbell from the circle
Namestnikov gave the Rangers a 1-0 lead at 11:11 of the first period.
A video review initiated by the Situation Room determined the puck entered the net in a legal fashion. Kings coach John Stevens then challenged for goaltender interference, but it was determined by video review that Lewis hit Namestnikov into Campbell before the puck crossed the line.
DeAngelo extended the lead to 2-0 at 7:42 of the second period when his centering pass from along the right wall went in off Campbell's right skate.
Dustin Brown, who was making his season debut after missing 10 games because of a broken finger, scored a power-play goal at 11:23 to cut it to 2-1. Brown got positioning in the crease and tapped in a rebound of Kovalchuk's shot at the right post.
Video: NYR@LAK: Brown buries Kovalchuk's rebound
Kovalchuk scored on a one-timer from the high slot on the power play to tie it 2-2 at 13:14.
Los Angeles went 2-for-4 on the power play after entering the game 3-for-34.
"We're putting pucks toward the net. We had people at the net. We got rebounds in the blue paint," Stevens said. "You have that sense when they get out there after that there's a confidence in that group that they were going to create something."
Video: NYR@LAK: Kovalchuk scores PPG on blistering one-timer
They said it
"You just have to stop beating yourself. It's hard enough in this League to beat teams when you're not beating yourself. We helped them win tonight, and that's got to stop. That's on me, and we're going to keep at it." -- Rangers coach David Quinn
"There's not a box he doesn't check. I just thought he came back tonight and was determined to make a difference." -- Kings coach John Stevens on forward Dustin Brown
Need to know
Campbell has started and won each of the Kings' two wins at home this season. … Los Angeles won for the first time this season after allowing the first goal (0-6-1) and when trailing after the first period (0-5-1). … Staal played his 772nd game with the Rangers, tying Adam Graves for 10th all-time among skaters. … New York has allowed at least three goals in each road game this season.
Rangers: At the San Jose Sharks on Tuesday (10:30 p.m. ET; NBCSCA, MSG, NHL.TV)
Kings: Host the Philadelphia Flyers on Thursday (10:30 p.m. ET; FS-W, NBCSP+, NHL.TV)
Video: Kovalchuk, Martinez power Kings past Rangers, 4-3