Carmelo Anthony scored 39 points, and the New York Knicks outlasted the Atlanta Hawks 113-112 on Sunday in a game between two playoff-bound teams still battling for postseason seeding.

The Hawks took their final lead at 112-111 on Joe Johnson's 3-pointer with 1:50 left. Anthony countered with a jumper 10 seconds later for the final margin.

Off an inbound play with three seconds remaining, Atlanta's Marvin Williams beat Amare Stoudemire off the dribble at the top of the lane. But as he went for a dunk just before the buzzer, Stoudemire blocked the shot. Williams, who led Atlanta with a season-high 29 points, wanted a foul call on Anthony or Stoudemire, both of whom appeared to make contact.

Stoudemire started at center in place of Tyson Chandler, who was resting a sore knee.

The teams combined for 27 3-pointers on 42 attempts.

Stoudemire added 22 points and 12 rebounds in his second game after missing 13 with a sore back. Jeff Teague scored 23 for Atlanta, and Johnson had 22.

Knicks coach Mike Woodson gave Chandler the day off after New York played seven games in 11 days, and he was missed. The Knicks entered the game allowing 118.5 points in two games without Chandler and 93.8 when he plays.

Landry Fields, who moved into the starting lineup at forward Sunday, and Anthony scored 12 points each in the third quarter, and the Knicks made 7-of-8 3-pointers in the period to take a 94-93 lead. Fields finished with 18 points in a rare start.

The Hawks hold the No. 5 spot in the East and still have hopes of securing home-court advantage in a likely first-round matchup against the Celtics.

The Knicks are a half game ahead of Philadelphia for the No. 7 spot in the East.

NOTES: Knicks forward Jared Jeffries missed his third straight game with a sore right knee, and Woodson said he will not play in the last two regular-season games Wednesday against the Clippers and Thursday at Charlotte. ... Knicks uber-fan Spike Lee was at the game.