文章目录
定义
Stack - First in Last Out (FILO)
- Array or Linked List
Queue - First In First Out (FIFO)
- Array or Doubly Linked List
题目链接
https://leetcode.com/problems/backspace-string-compare/description/
https://leetcode.com/problems/implement-queue-using-stacks/solution/
https://leetcode.com/problems/implement-stack-using-queues/description/
https://leetcode.com/problems/valid-parenttheses/description/