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