프로그래머스 181918
[프로그래머스, 181918] 배열 만들기 4 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181918 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 98.8 MB, 시간: 24.18 ms사용 알고리즘: 자료구조import java.util.*;class Solution { public int[] solution(int[] arr) { // 스택으로 사용할 덱 Deque stack = new ArrayDeque(); // 스택 자료구조를 사용해 작업 수행 int idx = 0; while..