Changing direction

Changing direction

给您一个整数序列。在这个任务中您的任务是找出在给定的序列中排序方向改变了多少次。如果元素相等,则之前的排序方向保持不变,如果序列从相同元素开始,则寻找下一个不同的元素来确定排序方向。

让我们来看看这个方案:

changing_dir

有三个排序方向: ...

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