Commit 4bd8f745 authored by NIRMAL RAJPUT's avatar NIRMAL RAJPUT

add API and read data

parent 4150af66
#include "sorting.h" #include "sorting.h"
#include <iostream> #include <iostream>
using namespace std; using namespace std;
int main(){ int main(){
int n; int n;
cin>>n; cin>>n;
vector<int> inp(n),out; vector<int> inp(n),out;
for (int i=0;i<n;i++) cin>>inp[i]; for (int i=0;i<n;i++)
cin>>inp[i];
out=sort_custom(inp); out=sort_custom(inp);
for (int i=0;i<n;i++) cout<<out[i]<<" ";
for (int i=0;i<n;i++)
cout<<out[i]<<" ";
return 0; return 0;
} }
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