Reverse the words in a sentence

Write a program to reverse the words in a string.String is represented as an array.

Input: hello my world

Expected Output: world my hello

3 Comments

  1. techie007 says:

    1. Reverse the Sentence : dlrow ym olleh
    2. Iterate the sentence and find start and end of each of the words
    3. Reverse each of the words in place : world my hello

  2. EDDIE says:


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. No prescription pills. Order drugs online

    Buy:Aricept.SleepWell.Acomplia.Amoxicillin.Benicar.Female Pink Viagra.Female Cialis.Zetia.Nymphomax.Ventolin.Prozac.Buspar.Advair.Zocor.Lipothin.Lipitor.Cozaar.Lasix.Wellbutrin SR.Seroquel….

  3. FREDRICK says:


    CheapTabletsOnline.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality drugs. Order pills online

    Buy:Cozaar.Acomplia.Wellbutrin SR.Lipitor.Zetia.Lasix.Advair.Female Cialis.Female Pink Viagra.Prozac.Aricept.Amoxicillin.SleepWell.Buspar.Nymphomax.Seroquel.Lipothin.Benicar.Ventolin.Zocor….

Leave a Reply