The Warriors led by as many as 18 but had to hold on to beat the Hornets on Tuesday night.