Richard Liu’s Blog
首页
搜索
友情链接
往期整理
  •   历史归档
  •   文章分类
  •   文章标签
关于我
Richard Liu
Article
19
Category
4
Tags
8
首页
搜索
友情链接
往期整理
历史归档
文章分类
文章标签
关于我
栈
Post on:
Last edited: 2024-12-30
Views

顺序栈

  • top=0 或top=base 表示空栈
  • base=NULL表示栈不存在
  • 当插入新的栈顶元素时,指针top+1
  • 删除栈顶元素时,指针top-1
  • 当top>stacksize时,栈满,溢出
 

链栈

 
 
💡
C++直接用STL就行
 
Loading...
Richard Liu
Richard Liu
Richard Liu
Article
19
Category
4
Tags
8
小红书
Latest posts
Cherry Studio自用CSS
Cherry Studio自用CSS
2025-5-23
浙B印象
浙B印象
2025-5-23
大雾实验
大雾实验
2025-5-21
Kanon 雪之少女
Kanon 雪之少女
2025-5-20
20241019仙湖植物园小柔
20241019仙湖植物园小柔
2025-4-6
34th萤火虫漫展
34th萤火虫漫展
2025-4-6
Announcement
新年快乐喵~
 
 
2024-2025 Richard Liu.

Richard Liu’s Blog | Richard Liu

Powered by NotionNext 4.7.5.