CT23067

Omkar's Word Reversal Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Omkar found an old ledger of scrolls in the cooperage attic at the archive halls of Scrollkeep. The margin notes pose a precise question. 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| <= 1215; s contains lowercase English letters.

Example 1:

Input: ajklhge yzdtiv
Output: yzdtiv ajklhge

Example 2:

Input: oorjxsqzyr
Output: oorjxsqzyr

Example 3:

Input: dolsyrupd i ojfonikeehx
Output: ojfonikeehx i dolsyrupd

Constraints:

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

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