Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
170050084-170050092-170050102-git
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SABBITHI NAREN RAHUL
170050084-170050092-170050102-git
Commits
1998cd82
Commit
1998cd82
authored
Aug 27, 2018
by
SABBITHI NAREN RAHUL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add API and data read
parent
eaa4fb7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
main.cpp
main.cpp
+19
-0
sorting.h
sorting.h
+4
-0
No files found.
main.cpp
0 → 100644
View file @
1998cd82
#include<iostream>
#include<vector>
#include "sorting.h"
using
namespace
std
;
int
main
(){
int
n
;
cin
>>
n
;
vector
<
int
>
a
;
for
(
int
i
=
0
;
i
<
n
;
i
++
){
int
x
;
cin
>>
x
;
a
.
push_back
(
x
);
}
vector
<
int
>
b
=
sort_custom
(
a
);
for
(
vector
<
int
>::
iterator
it
=
a
.
begin
()
;
it
!=
a
.
end
()
;
++
it
){
cout
<<
*
it
<<
" "
;
}
cout
<<
endl
;
}
sorting.h
0 → 100644
View file @
1998cd82
#include<iostream>
#include<vector>
using
namespace
std
;
vector
<
int
>
sort_custom
(
vector
<
int
>
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment