MANHATTAN, Kan. (AP) -- Barry Brown poured in a career-high 38 points, Cartier Diarra added 17 in his first career start and Kansas State held on late to beat Oklahoma State 86-82 on Wednesday night.
Xavier Sneed added 11 points and 12 rebounds for the Wildcats (12-4, 2-2 Big 12), who had lost back-to-back games and were without Kamau Stokes, their steady guard and third-leading scorer.
Brown and Diarra helped overcome Stokes' recent injury by playing nearly the whole way.
Brandon Averette scored 22 points and Jeffrey Carroll had 20 for the Cowboys (11-5, 1-3), who led late in the second half before the Wildcats went on a game-changing run to take a 74-62 lead.
The Cowboys kept fighting, and Averette's 3-point play with 40 seconds left got them within 81-76. But Dean Wade answered with two free throws and, after Carroll scored at the other end, Brown tacked on the second of two more foul shots to put the game away.
The Wildcats played with the lead most of the way, even pushing their advantage to 27-18 late in the first half, before the Cowboys took a spurt of momentum into halftime.
Carroll provided the spark with a 3-point play and a couple more free throws.
Kansas State regained the lead early in the second half, but neither team was able to shake free until the Wildcats strung together five solid possessions beginning with six minutes to go.
Little-used guard Brian Patrick began the run with a 3-pointer to break a 58-all tie. Wade made four quick free throws. Sneed added a pair of his own. And a 3-pointer by Diarra from right in front of his own bench ignited a sparse but vocal home crowd.
Sneed's turnaround jumper out of a timeout pushed the Wildcats' lead to 72-62, their biggest of the game to that point, and coach Bruce Weber's team held on the rest of the way.
Oklahoma State had won three out of four games decided by two possessions or less. But even though they kept the pressure on the Wildcats by scoring down the stretch, they were unable to make up enough ground for back-to-back wins at Bramlage Coliseum.
Kansas State showed impressive poise whenever the Cowboys made a run, and again in the closing minutes, when they kept making shots to stay alive. Brown and Co. answered with a parade of free throws that kept the Cowboys from ever feeling as if they would make it all the way back.
The Wildcats could be without Stokes for a while after he hurt his foot in a loss to Texas Tech last weekend. Diarra started in his place, and fellow freshman Mike McGuirl made his college debut in the first half. McGuirl missed the first 12 games this season with an injury.
Oklahoma State returns home to face Texas on Saturday.
Kansas State hits Interstate 70 to play No. 12 Kansas on Saturday.