[프로그래머스] 기능개발

awmaker·2021년 7월 25일

Algorithm

목록 보기
2/9
post-thumbnail

[프로그래머스] 기능개발

const solution=(_,$)=>{
    const a=[]
    _.map(() => {
        _ = _.map((p, i) => p + $[i])
        let t = 0
        while (_[0] >= 100) {t+=1;_.shift()&&$.shift()}
        t!=0&&a.push(t)
    })
    return a
}
profile
From design to DevOps with frontend and backend.

0개의 댓글