This is my personal collection of interview questions. Answers are not provided for many of them but can easily be found through online research. Good luck! :)
Sunday, 24 June 2012
Write a function which reverses words in a sentence
Algorithm: reverse all characters in the entire sentence and then reverse characters in each word.
No comments:
Post a Comment