Skip to content

Commit

Permalink
Merge pull request #193 from akshbswas98/main
Browse files Browse the repository at this point in the history
Turbo Sort Solution
  • Loading branch information
viveakrt authored Jan 31, 2024
2 parents e0de0b7 + 71c8faf commit 1868842
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CodeChef/TSORT.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <bits/stdc++.h>
#include <algorithm>
using namespace std;

int main() {
// your code goes here
int t=0;
scanf("%d",&t);
int i=0,a[t];
while(i<t){
scanf("%ld",&a[i]);
i++;
}
sort(a,a+t);
for(i=0;i<t;i++)
{
cout<<a[i]<<"\n";
}
return 0;
}

0 comments on commit 1868842

Please sign in to comment.