Wave Sort Test Cases

Is Wave Sort valid if two numbers are same? How we will apply Wave sort int that case?
Suppose array is = {1,3,4,1,1,1,7,2,1,8} for n=10

hey @VarIsh, you no need to make any change, it will work fine with duplicates input too.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.