We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c63d2 commit fe86339Copy full SHA for fe86339
Sorting Algorithms/wavesort.cpp
@@ -1,4 +1,4 @@
1
-Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it
+/*Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it
2
In other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5].....
3
4
Example 1:
@@ -27,10 +27,10 @@ Expected Auxiliary Space: O(1).
27
28
Constraints:
29
1 ≤ n ≤ 106
30
-0 ≤ arr[i] ≤107
+0 ≤ arr[i] ≤107
31
32
33
-solution :
+solution : */
34
35
#include<iostream>
36
using namespace std;
0 commit comments