photo

PRIYAM DEKA


Last seen: 대략 2년 전 2021년부터 활동

Followers: 0   Following: 0

통계학

  • Thankful Level 2
  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


find sum of the run length of non zero elements between zeros of a matrix
suppose my matrix is a=[ 1 2 3 0 0 0 4 5 6 0 0 0 7 8 0 0 9 0 0 ] output wanted is [6 15 15 9]

대략 3년 전 | 답변 수: 5 | 0

5

답변

질문


how to count no of zeros between ones
suppose my array is a=[0 0 1 1 1 1 0 0 0 0 1 1 0 0 0 0 1 0 1 0 0] output i want is [2 4 4 1 2]

대략 3년 전 | 답변 수: 2 | 0

2

답변