First reverse the senetence word by word and then reverse the whole
string........that will be easier

On Mon, Aug 15, 2011 at 4:48 PM, programming love <
[email protected]> wrote:

> write a program to reverse the words in a give string.
> also state the time complexity of the algo.
>
> if the string is "i am a programmer"
> the output should be "programmer a am i"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
*Anil  Arya,
Computer Science *
*Motilal Nehru National Institute of Technology,Allahabad .
 *

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to