diff --git a/Hackerrank/Vector sort b/Hackerrank/Vector sort new file mode 100644 index 0000000..9794c9b --- /dev/null +++ b/Hackerrank/Vector sort @@ -0,0 +1,27 @@ +// problem link : https://www.hackerrank.com/challenges/vector-sort/problem + +#include +#include +#include +#include +#include +using namespace std; + + +int main() { + /* Enter your code here. Read input from STDIN. Print output to STDOUT */ + int N; cin>>N; + int x; + vectorv; + + for(int i=0;i>x; + v.push_back(x); + } + sort(v.begin(),v.end()); + + for(int i=0;i