Get the number of contiguous same numbers for an array

前端 未结 0 622
长情又很酷
长情又很酷 2021-01-01 15:46

I have an array here int arr[] = { 2, 3, -1, -1, -1, 4, -1, -1 }; and I want to write a code that gets the number of -1s in the array but only the

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