Chip-making giant Nvidia surpassed Apple on Tuesday to become the highest valued company in the world as the artificial intelligence boom continues to excite Wall Street.