File tree Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11# 9. 用两个栈实现队列
22
3- [ NowCoder] ( https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&tqId=11158&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github )
3+ ## 题目链接
4+
5+ [ 牛客网] ( https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&tqId=11158&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github )
46
57## 题目描述
68
1012
1113in 栈用来处理入栈(push)操作,out 栈用来处理出栈(pop)操作。一个元素进入 in 栈之后,出栈的顺序被反转。当元素要出栈时,需要先进入 out 栈,此时元素出栈顺序再一次被反转,因此出栈顺序就和最开始入栈顺序是相同的,先进入的元素先退出,这就是队列的顺序。
1214
13- <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/3ea280b5-be7d-471b-ac76-ff020384357c.gif " width =" 350 " /> </div ><br >
15+ <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/3ea280b5-be7d-471b-ac76-ff020384357c.gif " width =" 400 " /> </div ><br >
1416
1517``` java
1618Stack<Integer > in = new Stack<Integer > ();
Original file line number Diff line number Diff line change 6161
6262# 一、线程状态转换
6363
64- <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com /adfb427d-3b21-40d7-a142-757f4ed73079.png" width =" 600px " > </div ><br >
64+ <div align =" center " > <img src =" ../../.. /adfb427d-3b21-40d7-a142-757f4ed73079.png" width =" 600px " > </div ><br >
6565
6666## 新建(New)
6767
Original file line number Diff line number Diff line change 1+ # 前言
2+
13本文从 Leetcode 中精选大概 200 左右的题目,去除了某些繁杂但是没有多少算法思想的题目,同时保留了面试中经常被问到的经典题目。
24
35# 算法思想
Original file line number Diff line number Diff line change 11# 9. 用两个栈实现队列
22
3- [ NowCoder] ( https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&tqId=11158&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github )
3+ ## 题目链接
4+
5+ [ 牛客网] ( https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&tqId=11158&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github )
46
57## 题目描述
68
1012
1113in 栈用来处理入栈(push)操作,out 栈用来处理出栈(pop)操作。一个元素进入 in 栈之后,出栈的顺序被反转。当元素要出栈时,需要先进入 out 栈,此时元素出栈顺序再一次被反转,因此出栈顺序就和最开始入栈顺序是相同的,先进入的元素先退出,这就是队列的顺序。
1214
13- <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/3ea280b5-be7d-471b-ac76-ff020384357c.gif " width =" 350 " /> </div ><br >
15+ <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/3ea280b5-be7d-471b-ac76-ff020384357c.gif " width =" 400 " /> </div ><br >
1416
1517``` java
1618Stack<Integer > in = new Stack<Integer > ();
Original file line number Diff line number Diff line change 6161
6262# 一、线程状态转换
6363
64- <div align =" center " > <img src =" https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com /adfb427d-3b21-40d7-a142-757f4ed73079.png" width =" 600px " > </div ><br >
64+ <div align =" center " > <img src =" ../../.. /adfb427d-3b21-40d7-a142-757f4ed73079.png" width =" 600px " > </div ><br >
6565
6666## 新建(New)
6767
Original file line number Diff line number Diff line change 1+ # 前言
2+
13本文从 Leetcode 中精选大概 200 左右的题目,去除了某些繁杂但是没有多少算法思想的题目,同时保留了面试中经常被问到的经典题目。
24
35# 算法思想
You can’t perform that action at this time.
0 commit comments