[Leetcode] 232. Implement Queue using Stacks
Leetcode 232 (3) Implement Queue using Stacks - LeetCode 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 Solution class MyQueue: def __init__(self): self.stack = [] def push(self, x: int) -> None: self.stack.append(x) def pop(self) -> int: front = sel..
2021.01.18