Well Reversing the array i.e. reversing the sequence of words in an array can be done as below : 1. Reverse the whole string i.e. reverse the sequence of alphabets : "dlrow olleh" 2. Reverse the words independently now i..e apply the step 1 on sub arrays that are enclosed between 2 blank spaces.: "world hello"
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
