The expression equals(arr, cln, n) is false.
It means the array isn't in the required 'wave' order.
You can print the array at the end of your function to see what it looks like. In your case, it is:
47 22 23 23 33 14 46 9 39 13 29 29 91 91
You can see there's many places where it's incorrect.
Loading collection data...
It means the array isn't in the required 'wave' order.
You can print the array at the end of your function to see what it looks like. In your case, it is:
47 22 23 23 33 14 46 9 39 13 29 29 91 91
You can see there's many places where it's incorrect.