Verb meet by chance

Are you ever greeted with the phrase "long time, no see" when you run into an old acquaintance? How and why did such a grammatically awkward phrase become a widely accepted part of American speech?