The UCLA men's basketball team knew it had to overcome a big deficit late in the first half against Washington to have a chance to win at Galen Center on Saturday. Then it even had to overcome a 27-point halftime deficit.

But the Bruins became the No. 2 seed in the upcoming Pac-12 Tournament and finished up the regular season 20-7 with a 95-87 win over the Huskies.

Japreece Dean scored a career-high 23 points, including five of UCLA's nine three-pointers. Isaac Hamilton added 22 points, and Aaron Holiday had 17 points and eight assists.

"We just have to keep playing with confidence," Holiday said. "We were just tired of coming back and tying it."

Washington appeared to have plenty of energy when it grabbed a 17-6 lead and appeared to have enough to beat the Bruins. But UCLA made it a lot closer than anyone had expected when the second half began.

UCLA rallied in the first 6 1/2 minutes, including a three-pointer by Holiday, who hit a three-pointer to tie the score at 37 with 10:47 to play.

Dean drilled a three-pointer with 6:07 to play that started a 14-0 run to put the Bruins ahead, and a dunk by Troy Brown made it 92-78 with 1:37 to play.

Photos from the UCLA Bruins' game against the Washington Huskies at Galen Center.

UCLA's next game is at Oregon on Thursday night.

UCLA coach Steve Alford was relieved because the Bruins had lost four of their last five.

"That's a fight to get that win," Alford said. "We had to dig down. After the way we looked out there in the first half, we just stuck together and wanted to compete and we did."

Cody Zeller had 20 points and 12 rebounds to lead Washington (20-7, 11-4).

"We hit a lot of shots in the first half, which meant there would be open ones for us in the second half," Zeller said. "It just didn't work out for us. In the second half, our defense fell apart and we let them get open shots."

[email protected]

Twitter: