CT28335

Gardener's Word Reversal Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

In the cedar groves of Balmcrest, Gardener the scribe keeps careful count of the verses. Prepare the guildmaster's brief, 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| <= 1985; s contains lowercase English letters.

Example 1:

Input: s hfghujlroc ps uo ysucrl cwwpnqwzywow cbneut awvmhyj yymwygmj
Output: yymwygmj awvmhyj cbneut cwwpnqwzywow ysucrl uo ps hfghujlroc s

Example 2:

Input: qjokeaoy ecqnim mhgt dztomw b
Output: b dztomw mhgt ecqnim qjokeaoy

Example 3:

Input: kqtzl dtkg jd reqs u azrqnch bvfhygyesziz kdhgsfbmeg opfeeji vhktsbgzcml jpsexrkun ggufmvz iirtb g gdveouspnu
Output: gdveouspnu g iirtb ggufmvz jpsexrkun vhktsbgzcml opfeeji kdhgsfbmeg bvfhygyesziz azrqnch u reqs jd dtkg kqtzl

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Gardener's Word Reversal Ledger - EASY Coding Problem | CodeTikki