87,996
社区成员
发帖
与我相关
我的任务
分享
点击下载题解代码: js 检测数据特殊数字 算法题let count=0;
let arr=[[0,5,7,9,6],[2,4,3,2,1],[3,4,5,8,1]];
for(let i=0;i<5;i++)
{
for(let j=0;j<3;j++)
{
if(arr[j][i]==3)
{
count++;
}
}
}
console.log(count);不知道这样是不是对的。