Chip designer and artificial intelligence juggernaut Nvidia narrowly topped Microsoft’s market capitalization Tuesday to become the world’s most valuable public company, less than two weeks after it surpassed Apple’s market cap following months of strong stock gains.