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)
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)