摘要: 递归版 #include<bits/stdc++.h> using namespace std; void reverse(int *A, int lo,int hi){ if(lo<hi) { swap(A[lo],A[hi]); reverse(A,lo+1,hi-1); } } //验证 in 阅读全文
posted @ 2021-09-07 20:29 Los1r 阅读(147) 评论(0) 推荐(0)