c++ counting intervals in array where element gets bigger

后端 未结 0 448
既然无缘
既然无缘 2021-01-23 23:13

I have an array.

array[] = {5,7,4,6,7,5}
Expected Output: 2

5-7 #1
4-6-7 #2

Other example:

 array[] = {1,2,3,4,5,6}
 Output: 1 (1         


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