CT25907

The Word Reversal Beneath Whitewick

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the cotton rows of Whitewick opens only for a perfect tally of labels. Cyrus means to find out. 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| <= 767; s contains lowercase English letters.

Example 1:

Input: ckhbikzuvzh wry zdzbaukgda iuseqqtedeo yoafw hnzxwac fhnvwpzkef xzjezahfz
Output: xzjezahfz fhnvwpzkef hnzxwac yoafw iuseqqtedeo zdzbaukgda wry ckhbikzuvzh

Example 2:

Input: nj
Output: nj

Example 3:

Input: xsemvrxyz mxzwlub kpfetfezcgs ntaaoohkj dcnbgz xfxnhk kttkrzji dd
Output: dd kttkrzji xfxnhk dcnbgz ntaaoohkj kpfetfezcgs mxzwlub xsemvrxyz

Constraints:

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

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