Palantir Technologies (NASDAQ:PLTR) shares surged 283% in 2024, leading the S&P 500 toward its second year of 20%+ gains.