COLLEGE PARK, Md.. (AP) -- Melo Trimble scored 22 points and Michal Cekovsky and Damonte Dodd combined a season-high 10 blocks but Carsen Edwards made two free throws with 2.1 seconds left, and No. 23 Purdue rallied to beat No. 17 Maryland 73-72 on Saturday.
After Purdue took a timeout to set up a play, Edwards was fouled on a drive to the basket and calmly sank both shots. Maryland freshman Kevin Huerter then hit the rim on a jumper from the corner, leaving Purdue to celebrate its first road win over a ranked opponent since 2013.
The Terrapins (20-3, 8-2) scored their final 14 points at the free throw line -- including 11 by Melo Trimble. With 14 made free throws on the day, Trimble passed Len Bias for second all-time in career made free throws. Cekovsky's six blocks doubled his previous career-high of three.
Caleb Swanigan scored 26 points for the Boilermakers (19-5, 8-3), who trailed by 12 in the second half. Purdue has won five of six.
Trimble scored 20 or more points for The loss ended the Terrapins' seven-game winning streak and dropped them into second place in the conference behind Wisconsin, which plays on Sunday.
The Terrapins led 70-69 when Swanigan fouled out with 56 seconds remaining after getting tangled up with Trimble. The junior guard made both free throws, but Isaac Haas hit two on the other end to set up the dramatic finish.
The Boilermakers came in with the second-best shooting percentage in Big Ten play, but in this one the Terps held them to a 41 percent and 9 for 22 on 3-point attempts.
Maryland was clinging to a 41-38 lead before Huerter scored eight points in an 11-2 run to make it 52-40 with 13:44 remaining.
The Boilermakers then peeled off 11 straight points, including two 3s by Ryan Cline, to close to 52-51. Minutes later, Swanigan made a 3-pointer and Dakota Mathias sank two free throws to put Purdue up 60-58.
Trimble then scored the game's next seven points, all at the free throw line, including a technical foul shot after Haas complained about a blocking call at the baseline.