Wall Street ends up on M&A hopes, strong commodities

U.S. stocks advanced on Tuesday on an uptick in corporate deal activity while the weak dollar led to gains in commodities, lifting shares of oil and mining companies.