Talk:TADM2E 3.26

From Algorithm Wiki
Revision as of 05:40, 23 April 2015 by Tksrules (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Algorithm: 1.Write generic method to reverse an array character array. 2. Reverse entire string. So "My name is Chris" becomes "sirhC si eman yM". Lets call it reverseString 3. Reverse each word inside reverseString using generic method but use spaces as delimiters. so "sirhC si eman yM" is reversed 4 times part by part delimited by space and becomes "Chris is name My".