Solution to Reverse Words In Sentence from Jobdu

9 Sep

Question (in Chinese):

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 *