I stumbed across this round. If anyone has an ideas on how to solve this, please share:
There is a competition to give prizes to a farm that is producing ingredients for wholefoods, based on how environmentally friendly they are. The environmental friendliness is determined by
how low the value of chemical X is in the soil. For instance, the less X in the soil, the better the farming techniques for the environment. Value X in the soil for the farms is presented in a 1D array.
Because the farming techniques are very different between these farms, no two neighbouring farms
can have the same value of X in the soil. Because of geological reasons, we can’t really compare
the farms that are too far from each other.
Find any farm that should be given the award
Example: [ 3, 2, 1, 4, 5, 0, 8, 7] . Answer: 1, 0 and 7 are all valid answers.