Reverse a Sentence

Yet another “classic” programming interview question. The Question Given a sentence as input, reverse the words but not their individual letters. Thus, the sentence “One two three” would result in “three two One” The Answer Using an array is the only sensible way to accomplish this. If you don’t, you’ll … Continue reading