David Lee had 16 points and 18 rebounds for the Knicks, who trailed by 10 points after three quarters before finishing strong for their second victory in two nights during a crucial road trip for their playoff hopes.
Detroit built a 56-48 halftime lead and expanded the margin to 81-71 at the end of the third.
The Knicks, though, narrowed the deficit to 93-92 before McDyess hit another shot with 3:40 to play. Robinson answered with a basket, and after both teams got a stop, Tayshaun Prince blocked Quentin Richardson's layup attempt with 1:12 left.
Detroit extended the lead to three after another jumper by McDyess, but Hamilton fouled Larry Hughes on a 3-point attempt with 10 seconds to go.
Hughes hit all three shots to tie the game at 101, and the Pistons turned the ball over before they could get off a go-ahead attempt.
Jason Maxiell missed a free throw that could have tied the game with 1:32 left in overtime, and Richardson answered with a jumper. Hughes' fast-break layup gave the Knicks a 110-105 lead, and New York held on for the win.
Notes: Robinson, listed at 5-foot-9, won a third-quarter jump ball with 6-9 Amir Johnson. ... McDyess has eight career 20-rebound games, but hadn't had one since Feb. 26, 2001, when he had 21 for Denver against Orlando. No Piston had had a 20-20 game since the late Bison Dele on Dec. 5, 1997.
NEW YORK SPORTS AND MORE
USEFUL LINKS:
SEND TIP OR PHOTO || REPORT TYPO || GET WIDGET
EYEWITNESS TWITTER || FIND US ON FACEBOOK