Queue & Stack解题方法小结

LeetCode上的相关题目(easy)

155, 225, 232, 346

常用方法

  • Stack: push(), pop(), peak(), empty()
  • Queue(LinkedList): add(), element(), peak(), poll()

 

This site Original article All followed" Attribution—NonCommercial—ShareAlike 4.0 (CC BY-NC-SA 4.0) ”。 Please keep the following marks for sharing and interpretation:

Original author: Jake Tao Source: 「Queue & Stack解题方法小结」

Praise 170
0 0 170

Further reading

Post a reply

Log in can only be commented on later
Share this page
Back to top