Commit b2622477 authored by SUDHIR KUMAR's avatar SUDHIR KUMAR

add basic implementation

parent 0d2ef2f1
#include<iostream>
#include<vector>
#include "sorting.h"
using namespace std;
vector<int> sort_custom(vector<int>r){
for(int i=0;i<r.size();i++){
for(int j=r.size()-1;j>=i;j--){
if(r[j-1]>r[j]){
int temp;
temp=r[j-1];
r[j-1]=r[j];
r[j]=temp;
}
}
}
return r;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment