Problems > Reverse the Word Order > Editorial

Reverse the Word Order — Solution & Editorial

Back to the Problem

Split into words, reverse the list, join with spaces.

Complexity: O(length)