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
勘误【栈与队列 2.用栈实现队列】 #2455
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
【栈与队列 2.用栈实现队列】
如果我们使用
pop()
之后立马使用push()
,那么存放的相对顺序就有误了,所以在函数push
中,我们应该将stack_out
中的数据先恢复到stack_int
中,即:The text was updated successfully, but these errors were encountered: