diff --git a/prog.cpp b/prog.cpp index 276267c..f65fc84 100644 --- a/prog.cpp +++ b/prog.cpp @@ -1,3 +1,4 @@ +concept: alternate sorting means to first include lowest element followed by greatest then second smallest and so on vector alternateSort(int arr[], int N) { vector vect; @@ -13,4 +14,4 @@ vector alternateSort(int arr[], int N) vect.push_back(arr[N/2]); return vect; - } \ No newline at end of file + }