Finding contiguous array

后端 未结 0 1965
别那么骄傲
别那么骄傲 2021-01-28 03:48

I am trying to get an output of [4,6,6,7] with length 4 where arr[i] <= arr[i+1] where it is non-decreasing and it is contiguous. I know what i have to do but i dont know how

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