0 点赞 评论 收藏
分享
0 点赞 评论 收藏
分享
isovr:贴海报的题,JavaScript粗糙的解法:
function maxRoom(width, height){
// 输入有效性检验
if(!width.length ||
!height.length ||
width.length !== height.length){
return 0
}
let res = 1;
width.forEach(e => {
if(e <= 0){
res = 0
}
})
height.filter(e => {
if(e <= 0){
res = 0
}
})
if(!res){
return
}

0 点赞 评论 收藏
分享

0 点赞 评论 收藏
分享
创作者周榜
更多
关注他的用户也关注了: