The latest gains in shares of the world’s most valuable company follow strong rebounds this year from several of Wall Street’s technology-related heavyweights, fuelled by bets that the Federal Reserve is nearing the end of its campaign of US interest rate hikes, and by optimism about the potential for artificial intelligence.