-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
数据结构——栈 #11
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
栈数据结构
栈是遵循后进先出(LIFO)原则的有序集合。新元素靠近栈顶,旧元素靠近栈底。生活中例如一摞书或者堆放的盘子。
创建栈
应用——十进制转换二进制
应用——平衡圆括号
// 思路:遇到{入栈,遇到}出栈,最后判断栈中元素是否是0
应用-汉诺塔(栈和递归)
The text was updated successfully, but these errors were encountered: