You are given a sequence of words. Return the same words in reverse order, separated by a single space.
This problem is part of Graphs practice and is designed to strengthen the DFS pattern.
Return one line containing the words in reverse order.
Input:
5
code logic nexo alpha code
Output:
code alpha nexo logic code
Explanation:
1 <= n <= 10^5Each word contains only lowercase English letters.Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
5 code logic nexo alpha code
code alpha nexo logic code