CT22941

Neel's Ledger of labels

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

At the orchard lands of Applerun, Neel records each labels in a worn leather ledger. The guild wants answers, not guesses. 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| <= 629; s contains lowercase English letters.

Example 1:

Input: jjrofg oghdavi tfprzmeo zkkzwxkmhj mfzimoe wac iysuhpa
Output: iysuhpa wac mfzimoe zkkzwxkmhj tfprzmeo oghdavi jjrofg

Example 2:

Input: wuqhl virpd owse qlova qevjkdns rdrd wjzzzwdarw ixlwthtbepqa q tafbirzm ddybeginm ofiju avw qoen
Output: qoen avw ofiju ddybeginm tafbirzm q ixlwthtbepqa wjzzzwdarw rdrd qevjkdns qlova owse virpd wuqhl

Example 3:

Input: bgccirveqgu fcdzjegr wbqabxxxw yzjrv emvlxtwwkyym
Output: emvlxtwwkyym yzjrv wbqabxxxw fcdzjegr bgccirveqgu

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Neel's Ledger of labels - EASY Coding Problem | CodeTikki