Changing direction

Changing direction

You are given a sequence of integers. Your task in this mission is to find, how many times the sorting direction was changed in the given sequence. If the elements are equal - the previous sorting direction remains the same, if the sequence starts...

You should be an authorized user in order to see the full description and start solving this mission.