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

回答