The stock market endured its worst day in three weeks on Tuesday as investors fretted over Greece's debt crisis and a surge in the U.S. dollar. Investors seeking safety bought U.S. government bonds. U.S. markets were closed Monday for the Memorial Day holiday.