Commit 9f0e7cf5 authored by RAJDEEP YADAV's avatar RAJDEEP YADAV

add basic implementation

parent f1b900d5
#include<iostream>
#include "sorting.h"
using namespace std;
vector<int> sort_custom(vector<int> arr){
int N=arr.size();
for(int i=0;i<N;i++)
for(int j=0;j<N-i-1;j++)
if(arr[j]>arr[j+1])
swap(arr[j],arr[j+1]);
return arr;
}
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