algorithm alternating motion recursion

后端 未结 0 1176
南方客
南方客 2020-12-04 03:49

How can I devise an algorithm that inputs an array of numbers - of any length - and determines if a function they form represents an alternating motion?

For example,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题