描述写出一个程序,接受一个字符串,然后输出该字符串反转后的字符串。(字符串长度不超过1000)数据范围:数据范围: 0≤n≤10000要求:空间复杂度 O(n),时间复杂度 O(n) char* solve(char* str ) { // write code here if (str == NULL) { return NULL; } int len = strlen(str); char *out = malloc(len * (sizeof(char) + 1)); if (out == NULL) { return NULL; } for (int j=0,i = len -1; i...