How to record the start and end point of consecutive 1s (the length of 1s is at least 2) in a random 10X10 matrix each row?

前端 未结 0 1157
我在风中等你
我在风中等你 2020-12-03 03:36

The aim is to get each row\'s consecutive 1s from a random matirx. I have to record the start index and end index which the length of 1s is at least 2. I was quite strugglli

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