Commit 233cac56 authored by MILIND NIRANJAN's avatar MILIND NIRANJAN

add API and data read

parents
#include <iostream>
#include <vector>
#include "sorting.h"
using namespace std;
int main(){
int n;
cin>>n;
vector<int> arr;
for (int i=0; i<n; i++){
int x;
cin>>x;
arr.push_back(x);
}
vector<int> a = sort_custom(arr);
for (int i=0; i < a.size(); i++)
{
cout<<a[i]<<" ";
}
}
\ No newline at end of file
#include <iostream>
#include <vector>
using namespace std;
vector<int> sort_custom( vector<int> );
\ No newline at end of file
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