기능개발 https://programmers.co.kr/learn/courses/30/lessons/42586
function solution(progresses, speeds) {
const answer = [];
while (true) {
if (progresses.length === 0) break;
// 개발
for (let i = 0; i < progresses.length; i++) {
progresses[i] += speeds[i];
}
let deploy = 0;
while (true) {
if (progresses[0] >= 100) {
progresses.shift();
speeds.shift();
deploy++;
} else break;
}
if (deploy !== 0) answer.push(deploy);
}
return answer;
}