CLEVELAND — Carmelo Anthony scored 40 points, including the winning basket, and the Nuggets overcame LeBron James’ triple-double and ended the Cavaliers’ 13-game streak with a 118-116 victory in overtime last night.

James had his triple-double by the end of regulation, finishing with 43 points, 13 rebounds and 15 assists, but Anthony matched him shot for shot, hitting the winner on a deep jumper over an outstretched James with 1.9 seconds left.