[LeetCode] #232. Implement Queue using Stacks (python)
문제 https://leetcode.com/problems/implement-queue-using-stacks/ Implement Queue using Stacks - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 스택을 사용해서 큐를 구현하는 문제다. 예시 입출력 Input ["MyQueue", "push", "push", "peek", "pop", "empty"] [[], [1], [2], [], [], []] Output [null, null, null, ..
2022. 2. 24.