NEW YORK — Mathew Barzal scored in overtime and Semyon Varlamov made a season-high 44 saves Saturday night, lifting the New York Islanders to a 2-1 triumph over the Golden Knights.

It was the second straight victory for New York. The Knights have lost four in a row and six of their last seven.

Barzal beat goaltender Logan Thompson, who had 35 saves, with a high shot at 4:28 of the extra session after Varlamov stopped William Carrier on a penalty shot earlier in overtime, then denied Jack Eichel on another point-blank shot.

“It was great to see him score,” Islanders coach Lane Lambert said. “He put himself in a position tonight. He shot the puck and he got rewarded for it.”

The goal was Barzal’s 12th; He had only one assist in 10 games entering Saturday’s game. His previous goal came on Jan. 5 and his last overtime winner was on Nov. 23, 2018.

“That was huge, so it kind of puts us right back in the hunt,” Barzal said. “I’m sure we’re going to be hungry to have a good start after the break.”

Golden Knights coach Bruce Cassidy was encouraged by his team’s effort.

“We played a realty good hockey game but left a point on the table,” he said. “We keep that kind of effort up, we’ll be fine. We have to just hang in there until pucks start going in.”

After a scoreless first during which the Islanders outshot the Golden Knights 15-8, Islanders captain Anders Lee scored at 3:52 of the second, his 19th and fourth goal in four games.

Brock Nelson and Kyle Palmieri assisted. Nelson extended his points streak to six games while Palmieri’s assist was the 200th of his career and his fifth assist in four games since returning from injury.

Carrier tied it for the Knights late in the second with his 12th.

Varlamov improved to 9-6-1 for the Islanders, who were coming off Friday’s 2-0 home win over the Detroit Red Wings after a 1-7-3 stretch dropped them out of playoff position.

“He was focused and square all night,” Lambert said of Varlamov. “He played a fantastic game.”

The Islanders improved to 6-3-1 in their last 10 meetings with the Golden Knights, including a 5-2 win at Vegas on Dec. 17.

The Knights lost 4-1 to the Rangers at Madison Square Garden on Friday after falling to the Devils 3-2 in overtime on Tuesday in Newark. The Golden Knights are 1-5-2 heading into the All-Star break. Their next game is Feb. 7.

“I thought we played well in the second and third. We had tons of chances” Golden Knights defenseman Shea Theodore said. “We’re doing the right things. Every team goes through scoring droughts. It’s a perfect time for the break.”

The Golden Knights began the season 16-4-1 but are 13-14-3 since. They have allowed the first goal in 19 of their last 30 contests and are 4-12-3 in those games.

“It will be good to get some rest and get away for sure,” Cassidy added.

The Islanders went 0-1 on the power play. They are 0-25 in their last 10 games and 3-64 in the last 23 contests.