Thursday, 5 September 2013

Reverse words in a sentence using recursion [on hold]

Reverse words in a sentence using recursion [on hold]

I need to reverse words in a sentence array:
example: turn
1: Shilgiya
2: Cleopatra
3: James bond 007
4: Pooh
5: Sisso ve simhoo
6: ELVIS has left the BUILDING
to this one:
1: Shilgiya
2: Cleopatra
3: 007 bond James
4: Pooh
5: simhoo ve Sisso
6: BUILDING the left has ELVIS
I need to do it in a recursion, and I really don't know what to do. Can
someone can help me with the algorithm?
thank you

No comments:

Post a Comment