print ALTERNATING if the first element is even, odd, even, odd and so on. Print NOT otherwise?

后端 未结 0 842
死守一世寂寞
死守一世寂寞 2020-12-31 13:09

Given an array as input, print ALTERNATINGif the first element is even, second element is odd, third element is even, fourth is odd and so on. Print NOT otherwise

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