web123456

Niuke.com - Introduction to Algorithm Exercises - Reverse Strings

Write a program, accept a string, and output itString inversionThe string after. (The length of the string does not exceed 1000)

Data range: 0 \le n \le 10000≤n≤1000

Require:Space complexityO(n)O(n), time complexity O(n)O(n)