Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion prog.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
concept: alternate sorting means to first include lowest element followed by greatest then second smallest and so on
vector<int> alternateSort(int arr[], int N)
{
vector<int> vect;
Expand All @@ -13,4 +14,4 @@ vector<int> alternateSort(int arr[], int N)
vect.push_back(arr[N/2]);
return vect;

}
}