Skip to content

fix a wrong word #514

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

Merged
merged 1 commit into from
Jan 5, 2022
Merged

fix a wrong word #514

merged 1 commit into from
Jan 5, 2022

Conversation

tian-pengfei
Copy link
Contributor

No description provided.

@cherie-wuyajun
Copy link

cherie-wuyajun commented Jan 3, 2022 via email

@fyyzkd
Copy link

fyyzkd commented Jan 3, 2022 via email

@azl397985856
Copy link
Owner

递增和递减,我这里是根据出栈定的,而不是入栈

@tian-pengfei
Copy link
Contributor Author

递增和递减,我这里是根据出栈定的,而不是入栈

”如果柱子大于栈顶的柱子,那么说明不是我们要找的柱子,我们把它塞进去继续遍历“。说明从栈底到栈顶是由小到大。出栈的时候也自然是递减,所以为单调递减栈。 参考 [1,2,3,4] 就是一个单调递减栈(因为此时的出栈顺序是 4,3,2,1。下同,不再赘述) 出处

@azl397985856 azl397985856 reopened this Jan 5, 2022
@azl397985856 azl397985856 merged commit 6173063 into azl397985856:master Jan 5, 2022
@tian-pengfei tian-pengfei deleted the patch-1 branch December 7, 2022 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants