Mirror Line (Arrays & Lists)

Read n integers and print them in reverse order, separated by spaces.

Input: n, then n integers.

Output: The reversed list on one line.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Walk the list from the end, or reverse it.

More Arrays & Lists practice