Skip to content

Commit 40d4531

Browse files
committed
Added cpp solution to turbo sort
1 parent 450d92b commit 40d4531

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
int main()
4+
{
5+
int t,i;
6+
cin>>t; int a[t];
7+
for(i=0;i<t;i++)
8+
{
9+
cin>>a[i];
10+
11+
12+
}
13+
sort(a,a+t);
14+
15+
for(i=0;i<t;i++)
16+
{
17+
cout<<a[i]<<endl;
18+
}return 0;
19+
}

0 commit comments

Comments
 (0)