Danilo Gallinari scored 18 points, Corey Brewer had 15 and the Denver Nuggets pulled away late to beat the Golden State Warriors 104-98 on Monday night.