CHAPEL HILL, N.C. (AP) _ Jerry Stackhouse had 24 points and Donald Williams added 21 as No. 2 North Carolina beat Duke 99-86 Saturday night, keeping alive its chance of winning the ACC title and extending one of college basketball's most impressive streaks.

The Tar Heels (22-4, 12-4 Atlantic Coast Conference) could still finish in a four-way tie for the league championship with Wake Forest and Virginia, if the latter beats Maryland on Sunday. If Maryland wins, it takes the regular-season title.

The fifth straight victory over Duke assures the Tar Heels of finishing no worse than third in the league, making it 31 consecutive seasons they have not finished below third in what is traditionally one of the country's toughest conferences.

Duke (12-17, 2-14) tied a school record for losses in a season and is 3-14 since coach Mike Krzyzewski took a leave of absence to rehabilitate from back surgery.

It was Duke which looked like the upper-division team early as the Tar Heels missed 15 of their first 17 shots from the field and fell behind 14-5. They righted themselves quickly, making nine of their next 11 to take a 27-26 lead, but the Blue Devils led 44-38 at halftime as freshman Trajan Langdon went 5-for-6 from 3-point range.

Duke still led 62-53 with 12:51 to play, but Williams and Stackhouse keyed a 20-2 run that gave the Tar Heels a 73-64 lead with 7:28 to play.

Williams, who struggled from the field in the first half of his final home game, going 2-for-10, found the mark in the run and started it with a 3-pointer and added another.

Stackhouse's contributions were more of the highlight film variety as he dunked the rebound of a missed free throw and threw down another on a flip pass from Jeff McInnis.

Langdon led Duke with 23 points and Jeff Capel added 18.

North Carolina won the earlier meeting this season, 102-100 in double overtime.