GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PythonBasic/leetcode_stack/main.md at master · daacheng/PythonBasic

Expand file tree

/

main.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
34 lines (29 loc) · 1.44 KB
/

main.md

Copy path

File metadata and controls

34 lines (29 loc) · 1.44 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

LeetCode栈与队列

1.定义

队列

队列是一种先进先出的线性表(FIFO:First In First Out),它只允许在表的前端进行删除操作,在表的后端进行插入操作。

栈

栈是一种后进先出的线性表(LIFO:Last In First Out),它只允许在表尾部进行插入和删除操作。

2.题目

  • 有效的括号
  • 用栈实现队列
  • 用队列实现栈
  • 删除字符串中的所有相邻重复项
  • 逆波兰表达式求值
  • 滑动窗口最大值(困难)
  • 前K个高频元素
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.