Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
A number can be the average of its neighbors if one neighbor is smaller than the number and the other is greater than the number.
We can put numbers smaller than the median on odd indices and the rest on even indices.