Solution to Reverse Words In Sentence from Jobdu

9 Sep

Question (in Chinese): http://ac.jobdu.com/problem.php?pid=1361

Question Name: Reverse Words In Sentence

Question Description: given a string, reverse the words’ order.

Input: the input might contain multiple test cases. Each line, as a whole string, is a test case.

Output: print the reversed string.

It seems, there is not accepted Java solution. The OJ system always says “Presentation Error”.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!