auto commit

This commit is contained in:
CyC2018 2020-11-04 02:14:47 +08:00
parent 5c1f44d5e1
commit d4729cd8ec
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
使用一个额外的 minStack栈顶元素为当前栈中最小的值在对栈进行 push 入栈和 pop 出栈操作时同样需要对 minStack 进行入栈出栈操作从而使 minStack 栈顶元素一直为当前栈中最小的值在进行 push 操作时需要比较入栈元素和当前栈中最小值将值较小的元素 push minStack
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20201104013936126.png" alt="image-20201104013936126" style="zoom:50%;" /> </div><br>
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20201104013936126.png" width="350px"> </div><br>
```java
private Stack<Integer> dataStack = new Stack<>();

View File

@ -12,7 +12,7 @@
使用一个额外的 minStack栈顶元素为当前栈中最小的值在对栈进行 push 入栈和 pop 出栈操作时同样需要对 minStack 进行入栈出栈操作从而使 minStack 栈顶元素一直为当前栈中最小的值在进行 push 操作时需要比较入栈元素和当前栈中最小值将值较小的元素 push minStack
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20201104013936126.png" alt="image-20201104013936126" style="zoom:50%;" /> </div><br>
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/image-20201104013936126.png" width="350px"> </div><br>
```java
private Stack<Integer> dataStack = new Stack<>();