class Solution {
public:
/**
* @param A an integer array
* @return void
*/
void sortIntegers(vector<int>& A) {
// Write your code here
for(auto &c:A){
for(auto &b:A){
if(c<b){
int temp=b;
b=c;
c=temp;}
}
}
}
}
Lintcode(入门)463
最新推荐文章于 2021-06-04 02:35:37 发布