Billionaire Warren Buffett's Berkshire Hathaway has ended a difficult chapter in its investment in IBM while ramping up its stake in Apple.

CNBC's Becky Quick, in an interview from Omaha that aired Friday, asked him if Berkshire owns any IBM shares.

He said, "No."

"I think we have zero," he said.

"The answer is almost certain, yes," on Berkshire owning no more IBM shares, he said.