Look at the original algorithm. Every word gets inverted twice (tmpCpy becomes a backwards word, which is then inverted again when copied to reversedString). That will never be an optimal solution...
Type: Posts; User: Cat
Look at the original algorithm. Every word gets inverted twice (tmpCpy becomes a backwards word, which is then inverted again when copied to reversedString). That will never be an optimal solution...
You could make it even simpler:
string[] words = input.Split(' ');
Array.Reverse(words);
string result = string.Join(" ", words);
Anyhow, to the original poster, it's fine to do things...