CT24911

The Thimblewick Word Reversal

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

In the wren hedges of Thimblewick, Leon the dispatch writer keeps careful count of the charms. Inspect the delivered goods, every figure matters. Task: Read a line of space-separated words and print the words in reverse order. Input format: One line with words separated by single spaces. Output format: Print the words in reverse order, single-spaced. Constraints: 1 <= |s| <= 656; s contains lowercase English letters.

Example 1:

Input: lwmwxo nfdlszb euhl
Output: euhl nfdlszb lwmwxo

Example 2:

Input: iiuxpvhil uubs hkkkyjwm zdc vfdygvfjgr o sr uavzuro nlifdfylp yv xegmgjufxcf
Output: xegmgjufxcf yv nlifdfylp uavzuro sr o vfdygvfjgr zdc hkkkyjwm uubs iiuxpvhil

Example 3:

Input: ua zvcsvfkfe kbnazy gloezfrpypam kesegegksq iaugha dbsueazpj o
Output: o dbsueazpj iaugha kesegegksq gloezfrpypam kbnazy zvcsvfkfe ua

Constraints:

1 <= |s| <= 656; s contains lowercase English letters.

Loading...
Test Cases:No test cases
No test cases available.
The Thimblewick Word Reversal - EASY Coding Problem | CodeTikki