蓝桥杯算法提高VIP-递归倒置字符数组 摘要:#include #include #include typedef char elemType; void reverse(char *str,int *i); void swap(void…… 题解列表 2021年12月01日 0 点赞 0 评论 234 浏览 评分:0.0
递归倒置字符数组 摘要:解题思路:如题,定义函数并递归注意事项:这个代码是运行错误的,但答案一致,只供参考,请勿直接复制粘贴参考代码:#include<stdio.h>#include<string.h>char* reve…… 题解列表 2021年12月13日 0 点赞 0 评论 232 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:使用 swap 函数交换首尾元素。#include<bits/stdc++.h> using namespace std; int main() { int n; c…… 题解列表 2021年12月20日 0 点赞 0 评论 180 浏览 评分:0.0
抄别人的,没读懂题目,收尾交换.中间倒序 摘要:#include <stdio.h> #include <string.h> void reverse(char* s, int L, int R){ if(L >= R) return…… 题解列表 2022年01月26日 0 点赞 0 评论 98 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int i=0; char s[8000]; void f(int n) { …… 题解列表 2022年02月19日 0 点赞 0 评论 104 浏览 评分:0.0