CT26044

Orin's verses Reckoning

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Before the gates of the peat bogs of Mossgrieve close for winter, Orin must finish the verses ledger - one figure at a time. 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| <= 1802; s contains lowercase English letters.

Example 1:

Input: kohhghmbpkm radpznm kjw wbce ajye ouxltfozczy
Output: ouxltfozczy ajye wbce kjw radpznm kohhghmbpkm

Example 2:

Input: fyliobrmp yoob
Output: yoob fyliobrmp

Example 3:

Input: sonrbwiftcb lzskt u qt ozoidht ow iudznt jj rwr
Output: rwr jj iudznt ow ozoidht qt u lzskt sonrbwiftcb

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Orin's verses Reckoning - EASY Coding Problem | CodeTikki