UNDATED (AP) — The NBA's regular season ended last night. The playoffs start Saturday with four games: Brooklyn at Toronto, Golden State at the L.A. Clippers, Atlanta at Indiana and Memphis at Oklahoma City.

On Sunday, there are four games as well: Dallas at San Antonio, Charlotte at two-time NBA champion Miami, Washington visits Chicago and Portland is at Houston.

Last night a few teams improved their playoff positions or took time to rest their stars in anticipation of the playoffs.

Kevin Durant scored 42 points, including 21 in the fourth quarter, and the Oklahoma City Thunder secured the No. 2 playoff seed in the Western Conference, rallying from 10-point fourth-quarter deficit to beat the Detroit Pistons 112-111

In other action on the final night of the NBA regular season:

— Mike Conley hit two free throws with 1.1 seconds left in overtime, and the Memphis Grizzlies grabbed the Western Conference's No. 7 seed away from Dallas by edging the Mavericks 106-105.

— Rasual Butler and Chris Copeland each scored 19 points as the Indiana Pacers rested their key players and cruised to a 101-86 victory over the Orlando Magic in the regular-season finale for both teams. Indiana held out starters Paul George, Lance Stephenson and David West. Indiana, top seed in the East, opens against Atlanta.

— The New York Knicks finished their disappointing season with a 95-92 victory over the Toronto Raptors, who blew a 21-point lead but earned the No. 3 seed in the Eastern Conference playoffs.

— Bradley Beal scored 27 points and Washington clinched the No. 5 seed in the Eastern Conference with a 118-102 win over the Boston Celtics. The Wizards will be facing Chicago in their first playoff appearance since 2008.

— Kemba Walker scored eight of his 22 points in overtime to help the Charlotte Bobcats defeat the Chicago Bulls 91-86.

__ Brooklyn coach Jason Kidd sat his starters for the playoffs and the Nets closed the regular season with a 114-85 loss to the Cleveland Cavaliers. Tyler Zeller scored 22 points with 11 rebounds for the Cavs.

— Tyreke (ty-REEK') Evans had 25 points and 10 assists, and the New Orleans Pelicans closed out a difficult season with a 105-100 victory over the playoff-bound Houston Rockets.

— Utah won a double-overtime crowd pleaser with a 136-130 win over Minnesota in a matchup of two teams playing out the string. Trey Burke had 32 for the Jazz.

— Jordan Crawford scored a career-high 41 points and Harrison Barnes added 30 as a squad of Golden State backups beat the Denver Nuggets 116-112,

— Archie Goodwin scored 12 of his career-high 29 points in the fourth quarter and the Phoenix Suns defeated the Sacramento Kings 104-99.

— Will Barton had a career-high 23 points and 10 rebounds and the Portland Trail Blazers downed the Los Angeles Clippers 110-104.

— The Philadelphia 76ers wrapped up a dismal season by topping the Miami Heat 100-87. Thaddeus Young scored 20.

— Jordan Hill had 18 points and 14 rebounds and the Lakers closed their worst season since they moved to Los Angeles with a 113-100 victory over the San Antonio Spurs. Los Angeles closed the season with a two-game winning streak to finish 27-55.

__ Mike Scott scored 17 points and the Atlanta Hawks ended the regular season with a 111-103 win over the Milwaukee Bucks, who finished an NBA-worst 15-67.