총 617개의 글
function solution(arr) { const result = []; for (const num of arr) { // 스택이 비어있지 않고, 마지막 원소가 현재 값과 같다면 pop if (result.length > 0 && result[result.leng...
function solution(order) { let answer = 0; for (let i = 0; i < order.length; i++) { const menu = order[i]; if (menu.includes("americano")) { // 아메리카노 ...