TADM2E 3.26

From Algorithm Wiki
Revision as of 17:10, 11 September 2016 by Rainhaven (talk | contribs) (Created page with "1. Reverse the whole string. 2. Reverse each word in the string. Space is O(1), time is O(n).")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. Reverse the whole string. 2. Reverse each word in the string.

Space is O(1), time is O(n).